summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-04-18 13:04:02 +0200
committerEike Rathke <erack@redhat.com>2017-04-18 13:05:32 +0200
commit87a53b75f9e520820e815ca275ea3d629630bf6b (patch)
tree806652094377c5436e1db336be41c59dcbc8f543 /sc
parent81291d622394682be44b80a87a856c0f891809d4 (diff)
use auto const& over ScMarkData::GetSelectedTabs()
Change-Id: Ica0192c589f0a262369480106557f679297a7468
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/cellsh1.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 1903df9fda74..f16b182ba4b3 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2340,13 +2340,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
OUString aUndo = ScGlobal::GetRscString( bShowNote ? STR_UNDO_SHOWALLNOTES : STR_UNDO_HIDEALLNOTES );
pData->GetDocShell()->GetUndoManager()->EnterListAction( aUndo, aUndo, 0, pData->GetViewShell()->GetViewShellId() );
- SCTAB nFirstSelected = rMark.GetFirstSelected();
- SCTAB nLastSelected = rMark.GetLastSelected();
-
- for( SCTAB aTab = nFirstSelected; aTab<=nLastSelected; aTab++ )
+ for (auto const& rTab : rMark.GetSelectedTabs())
{
- if (rMark.GetTableSelect(aTab))
- pDoc->GetAllNoteEntries(aTab, aNotes);
+ pDoc->GetAllNoteEntries(rTab, aNotes);
}
for(std::vector<sc::NoteEntry>::const_iterator itr = aNotes.begin(),