summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/source/core/filterbase.cxx2
-rw-r--r--oox/source/crypto/AgileEngine.cxx3
-rw-r--r--oox/source/export/shapes.cxx6
3 files changed, 6 insertions, 5 deletions
diff --git a/oox/source/core/filterbase.cxx b/oox/source/core/filterbase.cxx
index ede7b7ac06c3..8bcf91e53b4c 100644
--- a/oox/source/core/filterbase.cxx
+++ b/oox/source/core/filterbase.cxx
@@ -427,7 +427,7 @@ void SAL_CALL FilterBase::initialize( const Sequence< Any >& rArgs )
{
Sequence<css::beans::PropertyValue> aSeq;
rArgs[0] >>= aSeq;
- for (const auto& rVal : aSeq)
+ for (const auto& rVal : std::as_const(aSeq))
{
if (rVal.Name == "UserData")
{
diff --git a/oox/source/crypto/AgileEngine.cxx b/oox/source/crypto/AgileEngine.cxx
index 883daeed4ede..7c2a0e9c93d2 100644
--- a/oox/source/crypto/AgileEngine.cxx
+++ b/oox/source/crypto/AgileEngine.cxx
@@ -85,7 +85,8 @@ public:
{
const OUString& rLocalName = stripNamespacePrefix(rName);
- for (const Attribute& rAttribute : aAttributeList->getUnknownAttributes())
+ const css::uno::Sequence<Attribute> aUnknownAttributes = aAttributeList->getUnknownAttributes();
+ for (const Attribute& rAttribute : aUnknownAttributes)
{
const OUString& rAttrLocalName = stripNamespacePrefix(rAttribute.Name);
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index ebdac1259ffd..a5928223ff1c 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -2002,19 +2002,19 @@ ShapeExport& ShapeExport::WriteOLE2Shape( const Reference< XShape >& xShape )
OUString progID;
- for (auto const& it : grabBag)
+ for (auto const& it : std::as_const(grabBag))
{
if (it.Name == "EmbeddedObjects")
{
uno::Sequence<beans::PropertyValue> objects;
it.Value >>= objects;
- for (auto const& object : objects)
+ for (auto const& object : std::as_const(objects))
{
if (object.Name == entryName)
{
uno::Sequence<beans::PropertyValue> props;
object.Value >>= props;
- for (auto const& prop : props)
+ for (auto const& prop : std::as_const(props))
{
if (prop.Name == "ProgID")
{