summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-10 16:43:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-11 12:38:32 +0200
commitd347c2403605c5aa3ddd98fb605366914acab79f (patch)
treee39624030741234c514bccd858e69d6318dfba68 /sfx2/source/dialog
parentf0e68d4feaaa43f7450432ad1ebd92c2b572400f (diff)
convert std::map::insert to std::map::emplace
which is considerably less verbose Change-Id: Ifa373e8eb09e39bd6c8d3578641610a6055a187b Reviewed-on: https://gerrit.libreoffice.org/40978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/filtergrouping.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index d55171a913bf..e26ace875906 100644
--- a/sfx2/source/dialog/filtergrouping.cxx
+++ b/sfx2/source/dialog/filtergrouping.cxx
@@ -181,7 +181,7 @@ namespace sfx2
FilterClassList::iterator aInsertPos = m_rClassList.end();
--aInsertPos;
// remember this position
- m_rClassesReferrer.insert( FilterClassReferrer::value_type( _rLogicalFilterName, aInsertPos ) );
+ m_rClassesReferrer.emplace( _rLogicalFilterName, aInsertPos );
}
};
@@ -349,7 +349,7 @@ namespace sfx2
void operator() ( const FilterName& _rName )
{
::std::pair< FilterGroupEntryReferrer::iterator, bool > aInsertRes =
- m_rEntryReferrer.insert( FilterGroupEntryReferrer::value_type( _rName, m_aClassPos ) );
+ m_rEntryReferrer.emplace( _rName, m_aClassPos );
SAL_WARN_IF(
!aInsertRes.second, "sfx.dialog",
"already have an element for " << _rName);