Mod: use emplace_back
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user