diff options
| author | Noel Grandin <noel@peralex.com> | 2016-05-12 10:07:50 +0200 |
|---|---|---|
| committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:09:03 +0000 |
| commit | 96fab0513215cc416e96e1b2089466afd0d2791c (patch) | |
| tree | 7c03bd56b0c3744f0560c05ebb2f422155e64543 /xmloff/source/style/xmlstyle.cxx | |
| parent | b3d5da663ff09c72455a8d3bf9be7c00220271bb (diff) | |
clang-tidy modernize-loop-convert in writerfilter to xmlsecurity
Change-Id: I334411c6b57c028ffb41b5deb72002f9d54038c3
Reviewed-on: https://gerrit.libreoffice.org/24923
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/xmlstyle.cxx')
| -rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 6 |
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(); |
