From db17a874af37350b3270932175854ee674447bc1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 11 Aug 2017 11:36:47 +0200 Subject: convert std::map::insert to std::map::emplace II Change-Id: Ief8bd59c903625ba65b75114b7b52c3b7ecbd331 Reviewed-on: https://gerrit.libreoffice.org/41019 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppu/source/uno/lbenv.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cppu') diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index aefadc80fdeb..94bb57271f87 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -951,8 +951,7 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv ) { (*pEnv->acquireWeak)( pEnv ); std::pair< OUString2EnvironmentMap::iterator, bool > insertion ( - aName2EnvMap.insert( - OUString2EnvironmentMap::value_type( aKey, pEnv ) ) ); + aName2EnvMap.emplace( aKey, pEnv ) ); SAL_WARN_IF( !insertion.second, "cppu", "key " << aKey << " already in env map" ); } else -- cgit