From baa5f32c21185025b64c01fc589c69961528b0c5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Sep 2017 16:41:56 +0200 Subject: clang-tidy modernize-use-emplace in oox Change-Id: I9ea063b7f6c63ae1ad039859efeebb292d44c6e2 Reviewed-on: https://gerrit.libreoffice.org/42172 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/drawingml/diagram/diagram.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'oox/source/drawingml/diagram/diagram.cxx') diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 5d060799caab..4ddbc20630bc 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -277,9 +277,8 @@ void Diagram::build( ) if( aCurrCxn->mnType == XML_presOf ) { DiagramData::StringMap::value_type::second_type& rVec=getData()->getPresOfNameMap()[aCurrCxn->msDestId]; - rVec.push_back( - std::make_pair( - aCurrCxn->msSourceId,sal_Int32(0))); + rVec.emplace_back( + aCurrCxn->msSourceId,sal_Int32(0)); } ++aCurrCxn; -- cgit