summaryrefslogtreecommitdiffstats
path: root/writerfilter/source/ooxml/OOXMLPropertySet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLPropertySet.cxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
index 81e52ace7594..73dd505ffdb3 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
@@ -354,10 +354,8 @@ void OOXMLPropertySet::resolve(Properties & rHandler)
// be appended to mProperties. I don't think it can cause elements
// to be deleted. But let's check with < here just to be safe that
// the indexing below works.
- for (size_t nIt = 0; nIt < mProperties.size(); ++nIt)
+ for (OOXMLProperty::Pointer_t& pProp : mProperties)
{
- OOXMLProperty::Pointer_t pProp = mProperties[nIt];
-
if (pProp.get() != nullptr)
pProp->resolve(rHandler);
}