Change in core[master]: make code more explicit (in sw/source/core/crsr/)

Gerrit gerrit at gerrit.libreoffice.org
Mon Jul 9 02:04:01 PDT 2012


>From Philipp Riemer <ruderphilipp at 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 at gmail.com>



More information about the LibreOffice mailing list