summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-06-27 08:58:29 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-06-28 11:17:53 +0200
commit5247da4e4a821ca9c1336ffc9169b970cd547baf (patch)
treeb6c0e9797567106959c6cbf3c1d7a5fb9acdbd16 /sw
parent37953bfacc1cb47b80bc458f607c4da838ecce7d (diff)
sal_uInt16 to sal_Int32 and remove/fix comments
Change-Id: Icf49a339fb23d6217dd0bc41c9012233717ad808
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/undobj.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index bb546746fa81..7124511f8795 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -64,7 +64,7 @@ public:
#endif
};
-// This class saves the Pam as sal_uInt16s and can recompose those into a PaM
+// This class saves the Pam as integers and can recompose those into a PaM
SwUndRng::SwUndRng()
: nSttNode( 0 ), nEndNode( 0 ), nSttCntnt( 0 ), nEndCntnt( 0 )
{
@@ -343,7 +343,6 @@ void SwUndoSaveCntnt::MoveToUndoNds( SwPaM& rPaM, SwNodeIndex* pNodeIdx,
const SwPosition* pStt = rPaM.Start(), *pEnd = rPaM.End();
- // keep as sal_uInt16; the indices shift!
sal_uLong nTmpMvNode = aPos.nNode.GetIndex();
if( pCpyNd || pEndNdIdx )
@@ -696,7 +695,7 @@ void SwUndoSaveCntnt::DelCntntIndex( const SwPosition& rMark,
if( pMarkAccess->getAllMarksCount() )
{
- for( sal_uInt16 n = 0; n < pMarkAccess->getAllMarksCount(); ++n )
+ for( sal_Int32 n = 0; n < pMarkAccess->getAllMarksCount(); ++n )
{
// #i81002#
bool bSavePos = false;