summaryrefslogtreecommitdiffstats
path: root/src/helper/geom-pathstroke.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/helper/geom-pathstroke.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 'src/helper/geom-pathstroke.cpp')
-rw-r--r--src/helper/geom-pathstroke.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper/geom-pathstroke.cpp b/src/helper/geom-pathstroke.cpp
index b9cc1a38f..23d133e08 100644
--- a/src/helper/geom-pathstroke.cpp
+++ b/src/helper/geom-pathstroke.cpp
@@ -444,13 +444,13 @@ void extrapolate_join_internal(join_data jd, int alternative)
if( circle2.contains( startPt ) && !circle1.contains( endPt ) ) {
// std::cout << "Expand circle1" << std::endl;
p = expand_circle( circle1, circle2, startPt, tang1 );
- points.push_back( ShapeIntersection( 0, 0, p) );
- points.push_back( ShapeIntersection( 0, 0, p) );
+ points.emplace_back( 0, 0, p );
+ points.emplace_back( 0, 0, p );
} else if( circle1.contains( endPt ) && !circle2.contains( startPt ) ) {
// std::cout << "Expand circle2" << std::endl;
p = expand_circle( circle2, circle1, endPt, tang2 );
- points.push_back( ShapeIntersection( 0, 0, p) );
- points.push_back( ShapeIntersection( 0, 0, p) );
+ points.emplace_back( 0, 0, p );
+ points.emplace_back( 0, 0, p );
} else {
// std::cout << "Either both points inside or both outside" << std::endl;
return( miter_clip_join(jd) );
@@ -470,8 +470,8 @@ void extrapolate_join_internal(join_data jd, int alternative)
( circle1.contains( endPt ) && !circle2.contains( startPt ) ) ) {
Geom::Point apex = adjust_circles( circle1, circle2, startPt, endPt, tang1, tang2 );
- points.push_back( ShapeIntersection( 0, 0, apex) );
- points.push_back( ShapeIntersection( 0, 0, apex) );
+ points.emplace_back( 0, 0, apex );
+ points.emplace_back( 0, 0, apex );
} else {
// std::cout << "Either both points inside or both outside" << std::endl;
return( miter_clip_join(jd) );