summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:55:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:23:59 +0200
commit7841194ed70385627b9f8f88315fb1d0b5b8147c (patch)
tree9649156e3d7907c112a2bbd3e776fd6f502d3831 /vbahelper
parent2dfb192edfd1ab10e9d39e265e26ac6db93ac755 (diff)
loplugin:sequenceloop in unoxml..vcl
Change-Id: Ic3c48ec4d86252b62d3dd25bbc198f7d7fb75e90 Reviewed-on: https://gerrit.libreoffice.org/77533 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbauserform.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbashapes.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx
index c29c9782b3c9..96acd3af6034 100644
--- a/vbahelper/source/msforms/vbauserform.cxx
+++ b/vbahelper/source/msforms/vbauserform.cxx
@@ -233,7 +233,7 @@ ScVbaUserForm::nestedSearch( const OUString& aPropertyName, uno::Reference< awt:
uno::Reference< awt::XControl > xControl = xContainer->getControl( aPropertyName );
if ( !xControl.is() )
{
- uno::Sequence< uno::Reference< awt::XControl > > aControls = xContainer->getControls();
+ const uno::Sequence< uno::Reference< awt::XControl > > aControls = xContainer->getControls();
for ( const auto& rCtrl : aControls )
{
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index 2dd9cdbda000..f49d48370c9e 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -178,7 +178,7 @@ sal_Int32 ScVbaShape::getAutoShapeType(const css::uno::Reference< drawing::XShap
uno::Sequence< beans::PropertyValue > aGeoPropSeq;
if ( aGeoPropSet >>= aGeoPropSeq )
{
- for( const auto& rProp : aGeoPropSeq )
+ for( const auto& rProp : std::as_const(aGeoPropSeq) )
{
if( rProp.Name == "Type" )
{
diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx
index d993d443ea5e..7c9ca3f22cd9 100644
--- a/vbahelper/source/vbahelper/vbashapes.cxx
+++ b/vbahelper/source/vbahelper/vbashapes.cxx
@@ -145,7 +145,7 @@ ScVbaShapes::getShapesByArrayIndices( const uno::Any& Index )
uno::Sequence< uno::Any > sIndices;
aConverted >>= sIndices;
XNamedObjectCollectionHelper< drawing::XShape >::XNamedVec aShapes;
- for( const auto& rIndex : sIndices )
+ for( const auto& rIndex : std::as_const(sIndices) )
{
uno::Reference< drawing::XShape > xShape;
if ( rIndex.getValueTypeClass() == uno::TypeClass_STRING )