diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 09:31:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 12:40:57 +0200 |
commit | b2423a480785db6f4883d6314690b22b69d55c22 (patch) | |
tree | 52f00376acff4db0e2d522d1068d35a227836ad4 /extensions | |
parent | 07f9223daae92ac11be2382ecd0095e744f5695f (diff) |
loplugin:constvars in drawinglayer..framework
Change-Id: I6e62229fdc38f49f766a306f5264afafe9acefa5
Reviewed-on: https://gerrit.libreoffice.org/77774
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 3 | ||||
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index 996df17cfc38..612cc7b70893 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -567,7 +567,8 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid) // remove the old fields if ( xColContainer->hasElements() ) { - for ( OUString& rName : xColContainer->getElementNames() ) + const Sequence<OUString> aOldNames = xColContainer->getElementNames(); + for ( const OUString& rName : aOldNames ) xColContainer->removeByName( rName ); } diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 7a7672dfbd55..68775d5c940b 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -1695,7 +1695,7 @@ namespace pcr // propagate the changes to the min/max/default fields OUString aAffectedProps[] = { OUString(PROPERTY_VALUE), OUString(PROPERTY_DEFAULT_VALUE), OUString(PROPERTY_VALUEMIN), OUString(PROPERTY_VALUEMAX) }; - for (OUString & aAffectedProp : aAffectedProps) + for (const OUString & aAffectedProp : aAffectedProps) { Reference< XPropertyControl > xControl; try @@ -1743,7 +1743,7 @@ namespace pcr OUString aFormattedPropertyControls[] = { OUString(PROPERTY_EFFECTIVE_MIN), OUString(PROPERTY_EFFECTIVE_MAX), OUString(PROPERTY_EFFECTIVE_DEFAULT), OUString(PROPERTY_EFFECTIVE_VALUE) }; - for (OUString & aFormattedPropertyControl : aFormattedPropertyControls) + for (const OUString & aFormattedPropertyControl : aFormattedPropertyControls) { Reference< XPropertyControl > xControl; try |