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:
parent
fd2ba0d7cd
commit
ec533b46ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue