diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 11:16:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 13:05:02 +0200 |
commit | ff6e8c73adef7c86db12287948025954a4fc7746 (patch) | |
tree | ebd53edfbd8e6349b0dab9a92cedb9968a2454c9 /sd/source/ui/view | |
parent | b2423a480785db6f4883d6314690b22b69d55c22 (diff) |
loplugin:constvars in sccomp..sd
Change-Id: Ic4b2a1d23da80a5b0976692f490c29a7169be3ef
Reviewed-on: https://gerrit.libreoffice.org/77793
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r-- | sd/source/ui/view/ToolBarManager.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/view/ViewTabBar.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview3.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx index 5010323ee51f..e24ff1b12447 100644 --- a/sd/source/ui/view/ToolBarManager.cxx +++ b/sd/source/ui/view/ToolBarManager.cxx @@ -692,7 +692,7 @@ void ToolBarManager::Implementation::PreUpdate() maToolBarList.GetToolBarsToDeactivate(aToolBars); // Turn off the tool bars. - for (auto& aToolBar : aToolBars) + for (const auto& aToolBar : aToolBars) { OUString sFullName (GetToolBarResourceName(aToolBar)); SAL_INFO("sd.view", OSL_THIS_FUNC << ": turning off tool bar " << sFullName); @@ -721,7 +721,7 @@ void ToolBarManager::Implementation::PostUpdate() SAL_INFO("sd.view", OSL_THIS_FUNC << ": ToolBarManager::PostUpdate ["); // Turn on the tool bars that are visible in the new context. - for (auto& aToolBar : aToolBars) + for (const auto& aToolBar : aToolBars) { OUString sFullName (GetToolBarResourceName(aToolBar)); SAL_INFO("sd.view", OSL_THIS_FUNC << ": turning on tool bar " << sFullName); @@ -1262,7 +1262,7 @@ void ToolBarList::GetToolBarsToActivate (std::vector<OUString>& rToolBars) const std::vector<OUString> aRequestedToolBars; MakeRequestedToolBarList(aRequestedToolBars); - for (auto& aToolBar : aRequestedToolBars) + for (const auto& aToolBar : aRequestedToolBars) { if (::std::find(maActiveToolBars.begin(),maActiveToolBars.end(),aToolBar) == maActiveToolBars.end()) diff --git a/sd/source/ui/view/ViewTabBar.cxx b/sd/source/ui/view/ViewTabBar.cxx index d9663930a1da..969a59aa689d 100644 --- a/sd/source/ui/view/ViewTabBar.cxx +++ b/sd/source/ui/view/ViewTabBar.cxx @@ -466,7 +466,7 @@ bool ViewTabBar::HasTabBarButton ( { bool bResult (false); - for (css::drawing::framework::TabBarButton & r : maTabBarButtons) + for (const css::drawing::framework::TabBarButton & r : maTabBarButtons) { if (IsEqual(r, rButton)) { diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index bf452204c092..14eaef7bdd91 100644 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -107,7 +107,7 @@ struct ImpRememberOrigAndClone static SdrObject* ImpGetClone(std::vector<ImpRememberOrigAndClone>& aConnectorContainer, SdrObject const * pConnObj) { - for(ImpRememberOrigAndClone& rImp : aConnectorContainer) + for(const ImpRememberOrigAndClone& rImp : aConnectorContainer) { if(pConnObj == rImp.pOrig) return rImp.pClone; |