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 98f0a11ec0
commit ced8100ab9
67 changed files with 239 additions and 241 deletions

View File

@@ -925,7 +925,7 @@ PyObject* BSplineCurve2dPy::getCardinalSplineTangents(PyObject *args, PyObject *
interpPoints.reserve(list.size());
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
Base::Vector2d pnt = Py::toVector2d(*it);
interpPoints.push_back(gp_Pnt2d(pnt.x,pnt.y));
interpPoints.emplace_back(pnt.x,pnt.y);
}
Geom2dBSplineCurve* bspline = this->getGeom2dBSplineCurvePtr();
@@ -952,7 +952,7 @@ PyObject* BSplineCurve2dPy::getCardinalSplineTangents(PyObject *args, PyObject *
interpPoints.reserve(list.size());
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
Base::Vector2d pnt = Py::toVector2d(*it);
interpPoints.push_back(gp_Pnt2d(pnt.x,pnt.y));
interpPoints.emplace_back(pnt.x,pnt.y);
}
Py::Sequence list2(tgs);