diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-03-23 14:40:14 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-03-25 14:23:49 +0000 |
commit | 1482fe88f1e6a42add57fbe6900ed71b3972261d (patch) | |
tree | a5e7f37f754cb9330af6c96c88460947c273b112 /src | |
parent | 2d7bbb53af32f589d1740ad864fa8732c2127e0a (diff) |
Pass argument by reference and make trivial function inline
Change-Id: Ifc6897cea2f599b20bea82b00adfddbac5cc8e7f
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/animation/backend/clipanimator.cpp | 5 | ||||
-rw-r--r-- | src/animation/backend/clipanimator_p.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/animation/backend/clipanimator.cpp b/src/animation/backend/clipanimator.cpp index 63aca447b..8ba759a36 100644 --- a/src/animation/backend/clipanimator.cpp +++ b/src/animation/backend/clipanimator.cpp @@ -123,11 +123,6 @@ void ClipAnimator::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) QBackendNode::sceneChangeEvent(e); } -void ClipAnimator::setMappingData(const QVector<MappingData> mappingData) -{ - m_mappingData = mappingData; -} - void ClipAnimator::sendPropertyChanges(const QVector<Qt3DCore::QSceneChangePtr> &changes) { for (const Qt3DCore::QSceneChangePtr &change : changes) diff --git a/src/animation/backend/clipanimator_p.h b/src/animation/backend/clipanimator_p.h index a616ac9cd..da9109cfb 100644 --- a/src/animation/backend/clipanimator_p.h +++ b/src/animation/backend/clipanimator_p.h @@ -81,7 +81,7 @@ public: // Called by jobs bool canRun() const { return !m_clipId.isNull() && !m_mapperId.isNull() && m_running; } - void setMappingData(const QVector<MappingData> mappingData); + void setMappingData(const QVector<MappingData> &mappingData) { m_mappingData = mappingData; } QVector<MappingData> mappingData() const { return m_mappingData; } void setStartTime(qint64 globalTime) { m_startGlobalTime = globalTime; } |