summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/diagram/diagram.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 16:41:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 08:03:01 +0200
commitbaa5f32c21185025b64c01fc589c69961528b0c5 (patch)
tree74cac2c06c169986ca89c446fd69c745305bcc82 /oox/source/drawingml/diagram/diagram.cxx
parent7e2a6709d9511f983f9981258c38ccc125bcd3fe (diff)
clang-tidy modernize-use-emplace in oox
Change-Id: I9ea063b7f6c63ae1ad039859efeebb292d44c6e2 Reviewed-on: https://gerrit.libreoffice.org/42172 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/diagram/diagram.cxx')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx5
1 files changed, 2 insertions, 3 deletions
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;