From ec533b46ef174037e6cfadceb5fb38cbe805e2d2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 22 Apr 2016 08:39:37 +0200 Subject: [PATCH] SfxClassificationHelper: avoid implicit cast in loop const std::pair& vs const std::pair& Avoid copying by just using 'const auto&'. Change-Id: I711edc13d20194ee4901d1afe1f48d1f49657a53 Reviewed-on: https://gerrit.libreoffice.org/24291 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sfx2/source/view/classificationhelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx index 5e4567a631b4..5c581d508704 100644 --- a/sfx2/source/view/classificationhelper.cxx +++ b/sfx2/source/view/classificationhelper.cxx @@ -392,7 +392,7 @@ void SfxClassificationHelper::Impl::pushToDocumentProperties() uno::Sequence aProperties = xPropertySet->getPropertySetInfo()->getProperties(); std::map aLabels = m_aCategory.m_aLabels; aLabels[PROP_BACNAME()] = m_aCategory.m_aName; - for (const std::pair& rLabel : aLabels) + for (const auto& rLabel : aLabels) { try {