From fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 21:48:07 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-emplace=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the boilerplate required to add a new element to a container. --- src/selection-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 2108db35a..8c47d1934 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -3975,7 +3975,7 @@ void ObjectSet::setClipGroup() || apply_to_layer){ Inkscape::XML::Node *dup = (*i)->getRepr()->duplicate(xml_doc); - mask_items.push_back(std::make_pair(dup, (*i)->i2doc_affine())); + mask_items.emplace_back(dup, (*i)->i2doc_affine()); if (remove_original) { items_to_delete.push_back(*i); -- cgit v1.2.3