From d2350974b5e80291206f3869d04a23b9b8cd7471 Mon Sep 17 00:00:00 2001 From: LaShonda Hopper Date: Mon, 11 Sep 2017 13:16:11 -0400 Subject: [PATCH] [WL21389] Avoid vector copy within shapeInfoCalculator. Reviewed-by: Leander Hasty Changes Committed: modified: interface/src/Util.cpp --- interface/src/Util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Util.cpp b/interface/src/Util.cpp index 3e3f514117..6077c8ec42 100644 --- a/interface/src/Util.cpp +++ b/interface/src/Util.cpp @@ -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); }