Kaydet (Commit) 59c73f01 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Some ULONGs got in, get rid of them.

üst 15c98e06
...@@ -1998,7 +1998,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, ...@@ -1998,7 +1998,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
pDoc->GetNodes().GetEndOfInserts().StartOfSectionIndex() pDoc->GetNodes().GetEndOfInserts().StartOfSectionIndex()
< aInsPos.GetIndex() ) < aInsPos.GetIndex() )
{ {
ULONG nDistance = sal_uLong nDistance =
( pAktNode->EndOfSectionIndex() - ( pAktNode->EndOfSectionIndex() -
aRg.aStart.GetIndex() ); aRg.aStart.GetIndex() );
if (nDistance < nNodeCnt) if (nDistance < nNodeCnt)
...@@ -2039,7 +2039,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, ...@@ -2039,7 +2039,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
SwNodeIndex nStt( aInsPos, -1 ); SwNodeIndex nStt( aInsPos, -1 );
SwTableNode* pTblNd = ((SwTableNode*)pAktNode)-> SwTableNode* pTblNd = ((SwTableNode*)pAktNode)->
MakeCopy( pDoc, aInsPos ); MakeCopy( pDoc, aInsPos );
ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2; sal_uLong nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
if (nDistance < nNodeCnt) if (nDistance < nNodeCnt)
nNodeCnt -= nDistance; nNodeCnt -= nDistance;
else else
...@@ -2067,7 +2067,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange, ...@@ -2067,7 +2067,7 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
SwSectionNode* pSectNd = ((SwSectionNode*)pAktNode)-> SwSectionNode* pSectNd = ((SwSectionNode*)pAktNode)->
MakeCopy( pDoc, aInsPos ); MakeCopy( pDoc, aInsPos );
ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2; sal_uLong nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
if (nDistance < nNodeCnt) if (nDistance < nNodeCnt)
nNodeCnt -= nDistance; nNodeCnt -= nDistance;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment