use emplace_back instead of push_back where justified
This commit is contained in:
@@ -119,8 +119,8 @@ int DrawParametricTemplate::drawLine(double x1, double y1, double x2, double y2)
|
||||
{
|
||||
TechDraw::Generic *line = new TechDraw::Generic();
|
||||
|
||||
line->points.push_back(Base::Vector3d(x1, y1));
|
||||
line->points.push_back(Base::Vector3d(x2, y2));
|
||||
line->points.emplace_back(x1, y1);
|
||||
line->points.emplace_back(x2, y2);
|
||||
|
||||
geom.push_back(line); // Push onto geometry stack
|
||||
return geom.size() -1;
|
||||
|
||||
Reference in New Issue
Block a user