summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index ce4a02a2b..2369a75d4 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -295,11 +295,11 @@ add_or_replace_if_extremum(std::vector< std::pair<NodeList::iterator, double> >
if (testvalue > extrvalue) {
// replace all extreme nodes with the new one
vec.clear();
- vec.push_back( std::pair<NodeList::iterator, double>( node, t ) );
+ vec.emplace_back( node, t );
extrvalue = testvalue;
} else if ( Geom::are_near(testvalue, extrvalue) ) {
// very rare but: extremum node at the same extreme value!!! so add it to the list
- vec.push_back( std::pair<NodeList::iterator, double>( node, t ) );
+ vec.emplace_back( node, t );
}
}