summaryrefslogtreecommitdiffstats
path: root/src/graphlayout.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/graphlayout.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/graphlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphlayout.cpp b/src/graphlayout.cpp
index e347ceb5a..1cb2442e8 100644
--- a/src/graphlayout.cpp
+++ b/src/graphlayout.cpp
@@ -175,7 +175,7 @@ void graphlayout(std::vector<SPItem*> const & items) {
if (v_pair != nodelookup.end()) {
unsigned v = v_pair->second;
//cout << "Edge: (" << u <<","<<v<<")"<<endl;
- es.push_back(make_pair(u, v));
+ es.emplace_back(u, v);
if (conn->style->marker_end.set) {
if (directed && strcmp(conn->style->marker_end.value, "none")) {
constraints.push_back(new SeparationConstraint(YDIM, v, u,