diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-17 17:28:13 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-17 17:51:26 +0200 |
commit | bcd8f0ce8c5ed677be168085913300b8bab02e75 (patch) | |
tree | 6e6dc083ce1ea37794002c3895789c5e1ca5bc38 | |
parent | Resolves: fdo#51957 typo, endash entered twice, 2nd should be emdash (diff) | |
download | core-bcd8f0ce8c5ed677be168085913300b8bab02e75.tar.gz core-bcd8f0ce8c5ed677be168085913300b8bab02e75.zip |
docbm.cxx: MSVC wants const_iterators and complains with error C2440
Change-Id: I9dfc01a3405f685437a562e8330b5821864de0da
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 04074c7e57c7..a00e075164d7 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -1418,7 +1418,8 @@ void _SaveCntntIdx(SwDoc* pDoc, { aSave.SetTypeAndCount( 0x400, 0 ); const SwUnoCrsrTbl& rTbl = pDoc->GetUnoCrsrTbl(); - for( SwUnoCrsrTbl::iterator it = rTbl.begin(); it != rTbl.end(); ++it ) + for (SwUnoCrsrTbl::const_iterator it = rTbl.begin(); + it != rTbl.end(); ++it) { FOREACHPAM_START( *it ) lcl_ChkPaM( rSaveArr, nNode, nCntnt, *PCURCRSR, aSave, sal_False ); @@ -1558,7 +1559,8 @@ void _RestoreCntntIdx(SwDoc* pDoc, { sal_uInt16 nCnt = 0; const SwUnoCrsrTbl& rTbl = pDoc->GetUnoCrsrTbl(); - for( SwUnoCrsrTbl::iterator it = rTbl.begin(); it != rTbl.end(); ++it ) + for (SwUnoCrsrTbl::const_iterator it = rTbl.begin(); + it != rTbl.end(); ++it) { FOREACHPAM_START( *it ) if( aSave.GetCount() == nCnt ) @@ -1718,7 +1720,8 @@ void _RestoreCntntIdx(std::vector<sal_uLong> &rSaveArr, { sal_uInt16 nCnt = 0; const SwUnoCrsrTbl& rTbl = pDoc->GetUnoCrsrTbl(); - for( SwUnoCrsrTbl::iterator it = rTbl.begin(); it != rTbl.end(); ++it ) + for (SwUnoCrsrTbl::const_iterator it = rTbl.begin(); + it != rTbl.end(); ++it) { FOREACHPAM_START( *it ) if( aSave.GetCount() == nCnt ) |