[Libreoffice-commits] .: sw/source

Jan Holesovsky kendy at kemper.freedesktop.org
Fri Mar 18 09:29:58 PDT 2011


 sw/source/core/docnode/nodes.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f7c1fb816f8beaef014a66a98886d440a2c51e99
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Fri Mar 18 17:29:08 2011 +0100

    Some ULONGs got in, get rid of them.

diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index beb1e33..e663cff 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -1998,7 +1998,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
                     pDoc->GetNodes().GetEndOfInserts().StartOfSectionIndex()
                     < aInsPos.GetIndex() )
             {
-                ULONG nDistance =
+                sal_uLong nDistance =
                     ( pAktNode->EndOfSectionIndex() -
                         aRg.aStart.GetIndex() );
                 if (nDistance < nNodeCnt)
@@ -2039,7 +2039,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
                 SwNodeIndex nStt( aInsPos, -1 );
                 SwTableNode* pTblNd = ((SwTableNode*)pAktNode)->
                                         MakeCopy( pDoc, aInsPos );
-                ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
+                sal_uLong nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
                 if (nDistance < nNodeCnt)
                     nNodeCnt -= nDistance;
                 else
@@ -2067,7 +2067,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
                 SwSectionNode* pSectNd = ((SwSectionNode*)pAktNode)->
                                     MakeCopy( pDoc, aInsPos );
 
-                ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
+                sal_uLong nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
                 if (nDistance < nNodeCnt)
                     nNodeCnt -= nDistance;
                 else


More information about the Libreoffice-commits mailing list