summaryrefslogtreecommitdiff
path: root/sw/source/uibase/envelp/labelcfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/envelp/labelcfg.cxx')
-rw-r--r--sw/source/uibase/envelp/labelcfg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/envelp/labelcfg.cxx b/sw/source/uibase/envelp/labelcfg.cxx
index bb1a7191485c..8de5f3eb1499 100644
--- a/sw/source/uibase/envelp/labelcfg.cxx
+++ b/sw/source/uibase/envelp/labelcfg.cxx
@@ -254,9 +254,8 @@ void SwLabelConfig::FillLabels(const OUString& rManufacturer, SwLabRecs& rLab
{
if (m_aLabels.find(rManufacturer) == m_aLabels.end())
return;
- for (std::map<OUString, SwLabelMeasure>::iterator it = m_aLabels[rManufacturer].begin();
- it != m_aLabels[rManufacturer].end(); ++it)
- rLabArr.push_back( lcl_CreateSwLabRec(it->first, it->second.m_aMeasure, rManufacturer) );
+ for (const auto& rEntry : m_aLabels[rManufacturer])
+ rLabArr.push_back( lcl_CreateSwLabRec(rEntry.first, rEntry.second.m_aMeasure, rManufacturer) );
}
bool SwLabelConfig::HasLabel(const OUString& rManufacturer, const OUString& rType)