diff options
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/docshell/editable.cxx | 2 |
2 files changed, 5 insertions, 5 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 ); diff --git a/sc/source/ui/docshell/editable.cxx b/sc/source/ui/docshell/editable.cxx index daae0c5abdc8..ca4492b2ce15 100644 --- a/sc/source/ui/docshell/editable.cxx +++ b/sc/source/ui/docshell/editable.cxx @@ -104,7 +104,7 @@ void ScEditableTester::TestSelectedBlock( ScDocument* pDoc, const ScMarkData& rMark ) { 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) TestBlock( pDoc, *itr, nStartCol, nStartRow, nEndCol, nEndRow ); } |