summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/channelmapper_p.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-07-08 15:56:06 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-07-09 12:23:57 +0200
commit39d0041f15601cee499c959702b004cbd721bed9 (patch)
tree95140b88dee61bd78d171cb958ceca0cca978ad1 /src/animation/backend/channelmapper_p.h
parent93bd28e6d4ac8fdb6b07b30684e6b17ee515e44e (diff)
Use QList instead of QVector in implementation and docs
Fix some const correctness. Use list-initialization. Task-number: QTBUG-84469 Change-Id: I9c56742581f48f89a3b02e4121fae414117c7a25 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/channelmapper_p.h')
-rw-r--r--src/animation/backend/channelmapper_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/animation/backend/channelmapper_p.h b/src/animation/backend/channelmapper_p.h
index 45a3e789e..a2e9065a6 100644
--- a/src/animation/backend/channelmapper_p.h
+++ b/src/animation/backend/channelmapper_p.h
@@ -53,7 +53,7 @@
#include <Qt3DCore/qnodeid.h>
-#include <QtCore/qvector.h>
+#include <QtCore/qlist.h>
QT_BEGIN_NAMESPACE
@@ -71,10 +71,10 @@ public:
void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
- void setMappingIds(const QVector<Qt3DCore::QNodeId> &mappingIds) { m_mappingIds = mappingIds; }
- QVector<Qt3DCore::QNodeId> mappingIds() const { return m_mappingIds; }
+ void setMappingIds(const QList<Qt3DCore::QNodeId> &mappingIds) { m_mappingIds = mappingIds; }
+ QList<Qt3DCore::QNodeId> mappingIds() const { return m_mappingIds; }
- QVector<ChannelMapping*> mappings() const
+ QList<ChannelMapping*> mappings() const
{
if (m_isDirty)
updateMappings();
@@ -84,10 +84,10 @@ public:
private:
void updateMappings() const;
- QVector<Qt3DCore::QNodeId> m_mappingIds;
+ QList<Qt3DCore::QNodeId> m_mappingIds;
// Cached data
- mutable QVector<ChannelMapping*> m_mappings;
+ mutable QList<ChannelMapping*> m_mappings;
mutable bool m_isDirty;
};