SfxClassificationHelper: avoid implicit cast in loop

const std::pair<OUString, OUString>&

vs

const std::pair<const OUString, OUString>&

Avoid copying by just using 'const auto&'.

Change-Id: I711edc13d20194ee4901d1afe1f48d1f49657a53
Reviewed-on: https://gerrit.libreoffice.org/24291
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
This commit is contained in:
Miklos Vajna 2016-04-22 08:39:37 +02:00
parent fd2ba0d7cd
commit ec533b46ef

View file

@ -392,7 +392,7 @@ void SfxClassificationHelper::Impl::pushToDocumentProperties()
uno::Sequence<beans::Property> aProperties = xPropertySet->getPropertySetInfo()->getProperties();
std::map<OUString, OUString> aLabels = m_aCategory.m_aLabels;
aLabels[PROP_BACNAME()] = m_aCategory.m_aName;
for (const std::pair<OUString, OUString>& rLabel : aLabels)
for (const auto& rLabel : aLabels)
{
try
{