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 --- framework/source/uielement/toolbarmanager.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framework/source/uielement') diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 856c3916f5d9..c5cf1738fdb2 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -798,9 +798,8 @@ void ToolBarManager::CreateControllers() { SubToolBarControllerVector aSubToolBarVector; aSubToolBarVector.push_back( xSubToolBar ); - m_aSubToolBarControllerMap.insert( - SubToolBarToSubToolBarControllerMap::value_type( - aSubToolBarName, aSubToolBarVector )); + m_aSubToolBarControllerMap.emplace( + aSubToolBarName, aSubToolBarVector ); } else pIter->second.push_back( xSubToolBar ); -- cgit