summaryrefslogtreecommitdiff
path: root/linguistic
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 /linguistic
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 'linguistic')
-rw-r--r--linguistic/source/convdic.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index ca0304fa4480..b2f7ff655ae4 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -294,9 +294,9 @@ void ConvDic::AddEntry( const OUString &rLeftText, const OUString &rRightText )
Load();
DBG_ASSERT(!HasEntry( rLeftText, rRightText), "entry already exists" );
- aFromLeft .insert( ConvMap::value_type( rLeftText, rRightText ) );
+ aFromLeft .emplace( rLeftText, rRightText );
if (pFromRight.get())
- pFromRight->insert( ConvMap::value_type( rRightText, rLeftText ) );
+ pFromRight->emplace( rRightText, rLeftText );
if (bMaxCharCountIsValid)
{
@@ -553,7 +553,7 @@ void SAL_CALL ConvDic::setPropertyType(
// currently we assume that entries with the same left text have the
// same PropertyType even if the right text is different...
if (pConvPropType.get())
- pConvPropType->insert( PropTypeMap::value_type( rLeftText, nPropertyType ) );
+ pConvPropType->emplace( rLeftText, nPropertyType );
bIsModified = true;
}