From d347c2403605c5aa3ddd98fb605366914acab79f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Aug 2017 16:43:55 +0200 Subject: 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 Reviewed-by: Noel Grandin --- toolkit/source/controls/controlmodelcontainerbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/source/controls/controlmodelcontainerbase.cxx') diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index edee732e8452..523410a1ef13 100644 --- a/toolkit/source/controls/controlmodelcontainerbase.cxx +++ b/toolkit/source/controls/controlmodelcontainerbase.cxx @@ -727,7 +727,7 @@ Sequence< Reference< XControlModel > > SAL_CALL ControlModelContainerBase::getCo sal_Int32 nTabIndex = -1; xControlProps->getPropertyValue( getTabIndexPropertyName() ) >>= nTabIndex; - aSortedModels.insert( MapIndexToModel::value_type( nTabIndex, xModel ) ); + aSortedModels.emplace( nTabIndex, xModel ); } else if ( xModel.is() ) // no, it hasn't, but we have to include it, anyway -- cgit