[WL21389] Avoid vector copy within shapeInfoCalculator.

Reviewed-by: Leander Hasty <leander@1stplayable.com>

Changes Committed:
	modified:   interface/src/Util.cpp
This commit is contained in:
LaShonda Hopper 2017-09-11 13:16:11 -04:00
parent 5b50b362f1
commit d2350974b5

View file

@ -398,9 +398,9 @@ void runUnitTests() {
void shapeInfoCalculator(const ShapeEntityItem * const shapeEntity, ShapeInfo &shapeInfo) {
ShapeInfo::PointCollection pointCollection;
ShapeInfo::PointList points;
GeometryCache::computeSimpleHullPointListForShape(shapeEntity, points);
pointCollection.push_back(points);
GeometryCache::computeSimpleHullPointListForShape(shapeEntity, pointCollection.back());
shapeInfo.setPointCollection(pointCollection);
}