diff options
Diffstat (limited to 'sfx2/source/view/lokhelper.cxx')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 0e7af55e4682..59cdb833ead1 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -36,9 +36,8 @@ void SfxLokHelper::destroyView(int nId) unsigned nViewShellId = nId; SfxViewShellArr_Impl& rViewArr = SfxGetpApp()->GetViewShells_Impl(); - for (std::size_t i = 0; i < rViewArr.size(); ++i) + for (SfxViewShell* pViewShell : rViewArr) { - SfxViewShell* pViewShell = rViewArr[i]; if (pViewShell->GetViewShellId() == nViewShellId) { SfxViewFrame* pViewFrame = pViewShell->GetViewFrame(); @@ -54,9 +53,8 @@ void SfxLokHelper::setView(int nId) unsigned nViewShellId = nId; SfxViewShellArr_Impl& rViewArr = SfxGetpApp()->GetViewShells_Impl(); - for (std::size_t i = 0; i < rViewArr.size(); ++i) + for (SfxViewShell* pViewShell : rViewArr) { - SfxViewShell* pViewShell = rViewArr[i]; if (pViewShell->GetViewShellId() == nViewShellId) { if (pViewShell == SfxViewShell::Current()) |