summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:21:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 08:11:27 +0200
commita0073744aac89648e89506b79e227b17dacf58d0 (patch)
treed40b1c631884a0ce4428be716f550b12921ab21e /ucbhelper
parent61e02561aa659d829a6786609fc57d99fd8652b4 (diff)
loplugin:sequenceloop in ucb..unotools
Change-Id: Ie52d993c185ba43386b494baad0a484d5b365499 Reviewed-on: https://gerrit.libreoffice.org/77532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/propertyvalueset.cxx4
-rw-r--r--ucbhelper/source/provider/providerhelper.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx
index 486ac962aa34..32fabcff3b58 100644
--- a/ucbhelper/source/provider/propertyvalueset.cxx
+++ b/ucbhelper/source/provider/propertyvalueset.cxx
@@ -642,14 +642,14 @@ void PropertyValueSet::appendPropertySet(
Reference< XPropertySetInfo > xInfo = rxSet->getPropertySetInfo();
if ( xInfo.is() )
{
- Sequence< Property > aProps = xInfo->getProperties();
+ const Sequence< Property > aProps = xInfo->getProperties();
Reference< XPropertyAccess > xPropertyAccess( rxSet, UNO_QUERY );
if ( xPropertyAccess.is() )
{
// Efficient: Get all prop values with one ( remote) call.
- Sequence< css::beans::PropertyValue > aPropValues
+ const Sequence< css::beans::PropertyValue > aPropValues
= xPropertyAccess->getPropertyValues();
for ( const css::beans::PropertyValue& rPropValue : aPropValues )
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx
index 52935962f9be..ff15d082e042 100644
--- a/ucbhelper/source/provider/providerhelper.cxx
+++ b/ucbhelper/source/provider/providerhelper.cxx
@@ -288,7 +288,7 @@ bool ContentProviderImplHelper::renameAdditionalPropertySet(
if ( !xNameAccess.is() )
return false;
- uno::Sequence< OUString > aKeys
+ const uno::Sequence< OUString > aKeys
= xNameAccess->getElementNames();
if ( aKeys.hasElements() )
{
@@ -361,7 +361,7 @@ bool ContentProviderImplHelper::copyAdditionalPropertySet(
if ( !xNameAccess.is() )
return false;
- uno::Sequence< OUString > aKeys
+ const uno::Sequence< OUString > aKeys
= xNameAccess->getElementNames();
if ( aKeys.hasElements() )
{
@@ -410,7 +410,7 @@ bool ContentProviderImplHelper::copyAdditionalPropertySet(
return false;
// Obtain all values from old set.
- uno::Sequence< beans::PropertyValue > aValues
+ const uno::Sequence< beans::PropertyValue > aValues
= xOldPropAccess->getPropertyValues();
uno::Sequence< beans::Property > aProps
@@ -481,7 +481,7 @@ bool ContentProviderImplHelper::removeAdditionalPropertySet(
if ( !xNameAccess.is() )
return false;
- uno::Sequence< OUString > aKeys
+ const uno::Sequence< OUString > aKeys
= xNameAccess->getElementNames();
if ( aKeys.hasElements() )
{