diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-04-22 08:39:37 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-04-22 07:43:16 +0000 |
commit | ec533b46ef174037e6cfadceb5fb38cbe805e2d2 (patch) | |
tree | b0275a811f031c16cdb6570cfbf145b0ae04e488 /sfx2/source/view/classificationhelper.cxx | |
parent | fd2ba0d7cd3598f329bd18f96c0716b68e396378 (diff) |
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>
Diffstat (limited to 'sfx2/source/view/classificationhelper.cxx')
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<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 { |