summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 11:40:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 13:15:50 +0200
commitcf3fb54debffeab546085e648c73c576343be9f4 (patch)
treeadc4bbd98fcbb86cb7b26823a5649abf508ef5a0 /framework
parentfe00a724a918606e5c8c2c32b155bc50b33d56bd (diff)
loplugin:sequenceloop in forms..oox
Change-Id: Id742001211e916e7709918e7112902a0c35bac95 Reviewed-on: https://gerrit.libreoffice.org/77501 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/jobs/jobdata.cxx2
-rw-r--r--framework/source/uielement/generictoolbarcontroller.cxx2
-rw-r--r--framework/source/uielement/newmenucontroller.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx
index d18f2628ceaf..5d51c97bdeaa 100644
--- a/framework/source/jobs/jobdata.cxx
+++ b/framework/source/jobs/jobdata.cxx
@@ -504,7 +504,7 @@ std::vector< OUString > JobData::getEnabledJobsForEvent( const css::uno::Referen
// We create an additional job name list with the same size, then the original list...
// step over all job entries... check her timestamps... and put only job names to the
// destination list, which represent an enabled job.
- css::uno::Sequence< OUString > lAllJobs = xJobList->getElementNames();
+ const css::uno::Sequence< OUString > lAllJobs = xJobList->getElementNames();
sal_Int32 c = lAllJobs.getLength();
std::vector< OUString > lEnabledJobs(c);
diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx
index 61ddc35a4ffc..0049006c9099 100644
--- a/framework/source/uielement/generictoolbarcontroller.cxx
+++ b/framework/source/uielement/generictoolbarcontroller.cxx
@@ -318,7 +318,7 @@ void MenuToolbarController::initialize( const css::uno::Sequence< css::uno::Any
Sequence< PropertyValue > aProps;
// drop down menu info is currently the first ( and only ) menu in the menusettings container
xMenuContainer->getByIndex(0) >>= aProps;
- for ( const auto& aProp : aProps )
+ for ( const auto& aProp : std::as_const(aProps) )
{
if ( aProp.Name == "ItemDescriptorContainer" )
{
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index fc013759ae71..c02923a8d762 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -321,7 +321,7 @@ void NewMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > const &
if(xMenuItemDispatch == nullptr)
return;
- css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > aDynamicMenuEntries =
+ const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > aDynamicMenuEntries =
SvtDynamicMenuOptions().GetMenu( m_bNewMenu ? EDynamicMenuType::NewMenu : EDynamicMenuType::WizardMenu );
OUString aTitle;