use emplace_back instead of push_back where justified
This commit is contained in:
@@ -218,10 +218,10 @@ private:
|
||||
pts.reserve(l.size());
|
||||
for (Py::Sequence::iterator it = l.begin(); it != l.end(); ++it) {
|
||||
Py::Tuple t(*it);
|
||||
pts.push_back(Base::Vector3f(
|
||||
pts.emplace_back(
|
||||
(float)Py::Float(t.getItem(0)),
|
||||
(float)Py::Float(t.getItem(1)),
|
||||
(float)Py::Float(t.getItem(2)))
|
||||
(float)Py::Float(t.getItem(2))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ bool ParameterCorrection::GetUVParameters(double fSizeFactor)
|
||||
for (int ii=_pvcPoints->Lower(); ii<=_pvcPoints->Upper(); ii++) {
|
||||
const gp_Pnt& pnt = (*_pvcPoints)(ii);
|
||||
Wm4::Vector3d clProjPnt = clRotMatTrans * Wm4::Vector3d(pnt.X(), pnt.Y(), pnt.Z());
|
||||
vcProjPts.push_back(Base::Vector2d(clProjPnt.X(), clProjPnt.Y()));
|
||||
vcProjPts.emplace_back(clProjPnt.X(), clProjPnt.Y());
|
||||
clBBox.Add(Base::Vector2d(clProjPnt.X(), clProjPnt.Y()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user