summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlstyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/xmlstyle.cxx')
-rw-r--r--xmloff/source/style/xmlstyle.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index 56a5c1fdcf50..73aa9053b134 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -292,9 +292,8 @@ SvXMLStylesContext_Impl::~SvXMLStylesContext_Impl()
{
delete pIndices;
- for ( size_t i = 0, n = aStyles.size(); i < n; ++i )
+ for (SvXMLStyleContext* pStyle : aStyles)
{
- SvXMLStyleContext *pStyle = aStyles[ i ];
pStyle->ReleaseRef();
}
aStyles.clear();
@@ -312,9 +311,8 @@ void SvXMLStylesContext_Impl::Clear()
{
FlushIndex();
- for ( size_t i = 0, n = aStyles.size(); i < n; ++i )
+ for (SvXMLStyleContext* pStyle : aStyles)
{
- SvXMLStyleContext *pStyle = aStyles[ i ];
pStyle->ReleaseRef();
}
aStyles.clear();