From Philipp Riemer <ruderphilipp@gmail.com>:
Philipp Riemer has uploaded a new change for review.
Change subject: make code more explicit (in sw/source/core/crsr/)
......................................................................
make code more explicit (in sw/source/core/crsr/)
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -86,18 +86,19 @@ void CheckRange( SwCursor* );
  */
 void CheckRange( SwCursor* pCurCrsr )
 {
-    const SwPosition *pStt = pCurCrsr->Start(),
-        *pEnd = pCurCrsr->GetPoint() == pStt ? pCurCrsr->GetMark() : pCurCrsr->GetPoint();
+    const SwPosition* pStt = pCurCrsr->Start();
+    const SwPosition* pEnd = pCurCrsr->GetPoint() == pStt
+                                 ? pCurCrsr->GetMark() : pCurCrsr->GetPoint();
-    SwPaM *pTmpDel = 0,
-          *pTmp = (SwPaM*)pCurCrsr->GetNext();
+    SwPaM* pTmpDel = 0;
+    SwPaM* pTmp = (SwPaM*)pCurCrsr->GetNext();
     // Search the complete ring
     while( pTmp != pCurCrsr )
     {
-        const SwPosition *pTmpStt = pTmp->Start(),
-                        *pTmpEnd = pTmp->GetPoint() == pTmpStt ?
-                                        pTmp->GetMark() : pTmp->GetPoint();
+        const SwPosition* pTmpStt = pTmp->Start();
+        const SwPosition* pTmpEnd = pTmp->GetPoint() == pTmpStt
+                                        ? pTmp->GetMark() : pTmp->GetPoint();
         if( *pStt <= *pTmpStt )
         {
             if( *pEnd > *pTmpStt || ( *pEnd == *pTmpStt && *pEnd == *pTmpEnd ) )
Change-Id: Ia5ba67a57a69e6beb4cb650e90292168f0bdc3b5
---
M sw/source/core/crsr/crsrsh.cxx
M sw/source/core/crsr/pam.cxx
M sw/source/core/crsr/viscrs.cxx
3 files changed, 12 insertions(+), 10 deletions(-)
  git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/77/277/1
--
To view, visit https://gerrit.libreoffice.org/277
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5ba67a57a69e6beb4cb650e90292168f0bdc3b5
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Philipp Riemer <ruderphilipp@gmail.com>
Context
- Change in core[master]: make code more explicit (in	sw/source/core/crsr/) · Gerrit
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.