diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-09-22 13:11:34 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-09-26 10:53:11 +0000 |
commit | a56240c13ea84f678085131e7ee52c2402361a07 (patch) | |
tree | 16f4536a8a5eb67e1f6f1f24cfd48d80aafcb405 /src | |
parent | 3aefe68f281f1815dcb6ca73751d17b470429a0f (diff) |
Avoid deep copy in loop
Change-Id: I5a86547ae669394c290b30427f98821bc7552a63
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/animation/backend/animationutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ChannelNameAndType> &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); |