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 --- sdext/source/presenter/PresenterPaneBorderPainter.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sdext') diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx index 8aab1f8768e1..764c7dc0560c 100644 --- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx +++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx @@ -575,8 +575,7 @@ std::shared_ptr // Create a new pane style object and initialize it with bitmaps. std::shared_ptr pStyle ( new RendererPaneStyle(mpTheme,sPaneStyleName)); - iStyle = maRendererPaneStyles.insert( - RendererPaneStyleContainer::value_type(rsResourceURL, pStyle)).first; + iStyle = maRendererPaneStyles.emplace(rsResourceURL, pStyle).first; } if (iStyle != maRendererPaneStyles.end()) return iStyle->second; -- cgit