diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-08-15 21:32:27 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-20 17:12:11 +0200 |
commit | 0787ce8814e37972a0c968f60008d4e8722b6e27 (patch) | |
tree | 9d2803ebda8813e6b3f2bc2e6f8a74953b2931c1 /reportdesign | |
parent | make PhysicalFontCollection::Close return std::shared_ptr (diff) | |
download | core-0787ce8814e37972a0c968f60008d4e8722b6e27.tar.gz core-0787ce8814e37972a0c968f60008d4e8722b6e27.zip |
Simplify containers iterations, tdf#96099 follow-up
Use range-based loop or replace with std::any_of, std::find and
std::find_if where applicable.
Change-Id: I2f80788c49d56094c29b102eb96a7a7c079567c6
Reviewed-on: https://gerrit.libreoffice.org/59143
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 6e11dc0d32e5..19bbceca007e 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -737,11 +737,9 @@ void ORptExport::exportTableColumns(const Reference< XSection>& _xSection) if ( aColFind == m_aColumnStyleNames.end() ) return; - auto aColIter = aColFind->second.cbegin(); - auto aColEnd = aColFind->second.cend(); - for (; aColIter != aColEnd; ++aColIter) + for (auto& aCol : aColFind->second) { - AddAttribute( m_sTableStyle,*aColIter ); + AddAttribute(m_sTableStyle, aCol); SvXMLElementExport aColumn(*this,XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, true, true); } } |