summaryrefslogtreecommitdiffstats
path: root/src/removeoverlap.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/removeoverlap.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/removeoverlap.cpp')
-rw-r--r--src/removeoverlap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/removeoverlap.cpp b/src/removeoverlap.cpp
index bf9c362e2..a56933969 100644
--- a/src/removeoverlap.cpp
+++ b/src/removeoverlap.cpp
@@ -68,7 +68,7 @@ void removeoverlap(std::vector<SPItem*> const & items, double const xGap, double
min[Y] = max[Y] = (min[Y] + max[Y]) / 2.;
}
Rectangle * vspc_rect = new Rectangle(min[X], max[X], min[Y], max[Y]);
- records.push_back(Record(item, item_box->midpoint(), vspc_rect));
+ records.emplace_back(item, item_box->midpoint(), vspc_rect);
rs.push_back(vspc_rect);
}
}