summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation/backend/handler.cpp')
-rw-r--r--src/animation/backend/handler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/backend/handler.cpp b/src/animation/backend/handler.cpp
index 8ced81cd1..ce7aa3c17 100644
--- a/src/animation/backend/handler.cpp
+++ b/src/animation/backend/handler.cpp
@@ -217,7 +217,7 @@ QVector<Qt3DCore::QAspectJobPtr> Handler::jobsToExecute(qint64 time)
if (oldSize < newSize) {
m_evaluateClipAnimatorJobs.resize(newSize);
for (int i = oldSize; i < newSize; ++i) {
- m_evaluateClipAnimatorJobs[i].reset(new EvaluateClipAnimatorJob());
+ m_evaluateClipAnimatorJobs[i] = QSharedPointer<EvaluateClipAnimatorJob>::create();
m_evaluateClipAnimatorJobs[i]->setHandler(this);
}
}
@@ -243,7 +243,7 @@ QVector<Qt3DCore::QAspectJobPtr> Handler::jobsToExecute(qint64 time)
if (oldSize < newSize) {
m_evaluateBlendClipAnimatorJobs.resize(newSize);
for (int i = oldSize; i < newSize; ++i) {
- m_evaluateBlendClipAnimatorJobs[i].reset(new EvaluateBlendClipAnimatorJob());
+ m_evaluateBlendClipAnimatorJobs[i] = QSharedPointer<EvaluateBlendClipAnimatorJob>::create();
m_evaluateBlendClipAnimatorJobs[i]->setHandler(this);
}
}