use emplace_back instead of push_back where justified

This commit is contained in:
asapelkin
2019-10-25 00:57:12 +03:00
committed by wmayer
parent 079808b816
commit e951094af9
67 changed files with 239 additions and 241 deletions

View File

@@ -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;