sw/inc/ring.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit be77dba772e87ab2cc160430928af4aee73eec37
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Wed Mar 7 21:46:20 2018 +0100

    sw::Ring: simplify '*&x' to just 'x'
    
    Change-Id: I75d25c54c0c3e2c913ea0f2f36bdd4fc262fd088
    Reviewed-on: https://gerrit.libreoffice.org/50918
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx
index 191ff3ef7801..fc17a76e0403 100644
--- a/sw/inc/ring.hxx
+++ b/sw/inc/ring.hxx
@@ -186,8 +186,8 @@ namespace sw
                 // actually un-merge in this case!
                 assert(m_pStart->m_pPrev != aDestRing.m_pStart);
                 assert(m_pStart != aDestRing.m_pStart->m_pPrev);
-                std::swap(*(&m_pStart->m_pPrev->m_pNext), 
*(&aDestRing.m_pStart->m_pPrev->m_pNext));
-                std::swap(*(&m_pStart->m_pPrev), 
*(&aDestRing.m_pStart->m_pPrev));
+                std::swap(m_pStart->m_pPrev->m_pNext, 
aDestRing.m_pStart->m_pPrev->m_pNext);
+                std::swap(m_pStart->m_pPrev, aDestRing.m_pStart->m_pPrev);
             }
     };
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to