Mod: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:37 +10:00
committed by wwmayer
parent 6ac4d8392e
commit 2d4c5a4cfb
65 changed files with 254 additions and 265 deletions

View File

@@ -153,7 +153,7 @@ void Voronoi::addSegment(const Voronoi::segment_type &s) {
pil.y(low(s).y() * vd->getScale());
pih.x(high(s).x() * vd->getScale());
pih.y(high(s).y() * vd->getScale());
vd->segments.push_back(segment_type(pil, pih));
vd->segments.emplace_back(pil, pih);
}
long Voronoi::numPoints() const {

View File

@@ -294,7 +294,7 @@ void ViewProviderPath::setDisplayMode(const char* ModeName)
std::vector<std::string> ViewProviderPath::getDisplayModes(void) const
{
std::vector<std::string> StrList;
StrList.push_back("Waypoints");
StrList.emplace_back("Waypoints");
return StrList;
}