summaryrefslogtreecommitdiffstats
path: root/src/object/sp-path.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 19:48:07 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 19:48:07 +0000
commitfcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 (patch)
tree724178e38d88307e7b4129479006dc2ec122c410 /src/object/sp-path.cpp
parentRun clang-tidy’s modernize-use-noexcept pass. (diff)
downloadinkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.tar.gz
inkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.zip
Run clang-tidy’s modernize-use-emplace pass.
This reduces the boilerplate required to add a new element to a container.
Diffstat (limited to '')
-rw-r--r--src/object/sp-path.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}