diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-20 14:32:46 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-20 15:56:03 +0200 |
commit | 3e52f67c49b5cde7661d0cca2ea72ff10d55a12c (patch) | |
tree | fb616628e32c7c9b51b56708352872b37c7d52b2 /xmloff | |
parent | 008382650edf51d1561c7cdf8b1e0d43f0426c02 (diff) |
Simplify iteration over XMLFontAutoStylePool_Impl
... which has begin() and end().
Change-Id: I3de0abdcdfc31825693e594d67318a7267bb8d83
Reviewed-on: https://gerrit.libreoffice.org/77810
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/XMLFontAutoStylePool.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx index af44e28525d7..d8e9462f965c 100644 --- a/xmloff/source/style/XMLFontAutoStylePool.cxx +++ b/xmloff/source/style/XMLFontAutoStylePool.cxx @@ -394,16 +394,13 @@ void XMLFontAutoStylePool::exportXML() const SvXMLUnitConverter& rUnitConv = GetExport().GetMM100UnitConverter(); std::map<OUString, OUString> fontFilesMap; // our url to document url - sal_uInt32 nCount = m_pFontAutoStylePool->size(); std::unordered_set<OUString> aUsedFontNames; if (m_bEmbedUsedOnly) aUsedFontNames = getUsedFontList(); - for (sal_uInt32 i = 0; i < nCount; i++) + for (const auto& pEntry : *m_pFontAutoStylePool) { - const XMLFontAutoStylePoolEntry_Impl* pEntry = (*m_pFontAutoStylePool)[i].get(); - GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NAME, pEntry->GetName()); aAny <<= pEntry->GetFamilyName(); |