use emplace_back instead of push_back where justified
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user