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/object/sp-path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object/sp-path.cpp') diff --git a/src/object/sp-path.cpp b/src/object/sp-path.cpp index 44070b6a3..e2f6e6c99 100644 --- a/src/object/sp-path.cpp +++ b/src/object/sp-path.cpp @@ -101,7 +101,7 @@ void SPPath::convert_to_guides() const { // only add curves for straight line segments if( is_straight_curve(*cit) ) { - pts.push_back(std::make_pair(cit->initialPoint() * i2dt, cit->finalPoint() * i2dt)); + pts.emplace_back(cit->initialPoint() * i2dt, cit->finalPoint() * i2dt); } } } -- cgit v1.2.3