diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-05 13:35:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-05 13:35:56 +0100 |
commit | 6cfa32e2ff651fb2678980a9fff149628379db93 (patch) | |
tree | ef5949149e8b85ab445fc0d2dc62e4903b3e39bd /sc/source/ui/docshell/docfunc.cxx | |
parent | 1f516ee88a8abebd8f36ce4c9ccf47c4e11de4ff (diff) |
yet more iterator->const_iterator
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index f12ff7d675bf..0d531927a4cd 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -633,7 +633,7 @@ sal_Bool ScDocFunc::DeleteContents( const ScMarkData& rMark, sal_uInt16 nFlags, { bObjects = sal_True; SCTAB nTabCount = pDoc->GetTableCount(); - ScMarkData::iterator itr = rMark.begin(), itrEnd = rMark.end(); + ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end(); for (; itr != itrEnd && *itr < nTabCount; ++itr) if (pDoc->IsTabProtected(*itr)) bObjects = false; @@ -740,7 +740,7 @@ sal_Bool ScDocFunc::TransliterateText( const ScMarkData& rMark, sal_Int32 nType, ScDocument* pUndoDoc = new ScDocument( SCDOCMODE_UNDO ); pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); - ScMarkData::iterator itr = rMark.begin(), itrEnd = rMark.end(); + ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end(); for (; itr != itrEnd && *itr < nTabCount; ++itr) if (*itr != nStartTab) pUndoDoc->AddUndoTab( *itr, *itr ); @@ -1323,7 +1323,7 @@ sal_Bool ScDocFunc::ApplyStyle( const ScMarkData& rMark, const String& rStyleNam SCTAB nStartTab = aMultiRange.aStart.Tab(); SCTAB nTabCount = pDoc->GetTableCount(); pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); - ScMarkData::iterator itr = rMark.begin(), itrEnd = rMark.end(); + ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end(); for (; itr != itrEnd && *itr < nTabCount; ++itr) if (*itr != nStartTab) pUndoDoc->AddUndoTab( *itr, *itr ); @@ -3623,7 +3623,7 @@ sal_Bool ScDocFunc::ChangeIndent( const ScMarkData& rMark, sal_Bool bIncrement, ScDocument* pUndoDoc = new ScDocument( SCDOCMODE_UNDO ); pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); - ScMarkData::iterator itr = rMark.begin(), itrEnd = rMark.end(); + ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end(); for (; itr != itrEnd && *itr < nTabCount; ++itr) if (*itr != nStartTab) pUndoDoc->AddUndoTab( *itr, *itr ); |