From a56240c13ea84f678085131e7ee52c2402361a07 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Fri, 22 Sep 2017 13:11:34 +0100 Subject: Avoid deep copy in loop Change-Id: I5a86547ae669394c290b30427f98821bc7552a63 Reviewed-by: Kevin Ottens --- src/animation/backend/animationutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation/backend/animationutils.cpp b/src/animation/backend/animationutils.cpp index 1583a7fd7..db49078cf 100644 --- a/src/animation/backend/animationutils.cpp +++ b/src/animation/backend/animationutils.cpp @@ -497,7 +497,7 @@ ComponentIndices generateClipFormatIndices(const QVector &ta // Reserve enough storage for all the format indices int indexCount = 0; - for (const auto targetIndexVec : qAsConst(targetIndices)) + for (const auto &targetIndexVec : qAsConst(targetIndices)) indexCount += targetIndexVec.size(); ComponentIndices format; format.resize(indexCount); -- cgit v1.2.3