use emplace_back instead of push_back where justified
This commit is contained in:
@@ -3021,7 +3021,7 @@ bool Sketch::updateGeometry()
|
||||
std::vector<double *>::const_iterator it2;
|
||||
|
||||
for( it1 = mybsp.poles.begin(), it2 = mybsp.weights.begin(); it1 != mybsp.poles.end() && it2 != mybsp.weights.end(); ++it1, ++it2) {
|
||||
poles.push_back(Vector3d( *(*it1).x , *(*it1).y , 0.0));
|
||||
poles.emplace_back( *(*it1).x , *(*it1).y , 0.0);
|
||||
weights.push_back(*(*it2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user