diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-03-20 11:43:20 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-03-25 08:07:11 +0000 |
commit | b2a274103eff2a684f0aa91c7f18ee8b358d6dd1 (patch) | |
tree | cdc03c016f424178f92a8e4fce1f41d05d55fae7 /src/animation/backend/animationutils.cpp | |
parent | d18d6cb1989cf6925015da3860439e50e57bc30d (diff) |
Add typedef of ComponentIndices for QVector<int>
To convey a bit more meaning where used.
Change-Id: Ia0ac424d3b602831c324a7ea4405e99bcec5b6a7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/animationutils.cpp')
-rw-r--r-- | src/animation/backend/animationutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/animation/backend/animationutils.cpp b/src/animation/backend/animationutils.cpp index 910fa45cd..b96292eb9 100644 --- a/src/animation/backend/animationutils.cpp +++ b/src/animation/backend/animationutils.cpp @@ -114,7 +114,7 @@ double phaseFromGlobalTime(double t_global, double t_start_global, return t_local / duration; } -QVector<int> channelComponentsToIndices(const Channel &channel, int dataType, int offset) +ComponentIndices channelComponentsToIndices(const Channel &channel, int dataType, int offset) { #if defined Q_COMPILER_UNIFORM_INIT static const QVector<char> standardSuffixes = { 'X', 'Y', 'Z', 'W' }; @@ -130,7 +130,7 @@ QVector<int> channelComponentsToIndices(const Channel &channel, int dataType, in return channelComponentsToIndicesHelper(channel, dataType, offset, quaternionSuffixes); } -QVector<int> channelComponentsToIndicesHelper(const Channel &channel, +ComponentIndices channelComponentsToIndicesHelper(const Channel &channel, int dataType, int offset, const QVector<char> &suffixes) @@ -164,7 +164,7 @@ QVector<int> channelComponentsToIndicesHelper(const Channel &channel, << "but found" << actualComponentCount << "components in the animation clip"; } - QVector<int> indices(expectedComponentCount); + ComponentIndices indices(expectedComponentCount); for (int i = 0; i < expectedComponentCount; ++i) { const QString &componentName = channel.channelComponents[i].name; char suffix = componentName.at(componentName.length() - 1).toLatin1(); |