diff options
Diffstat (limited to 'tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp')
-rw-r--r-- | tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp b/tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp index e2e5e59e95..40eb8a6910 100644 --- a/tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp +++ b/tests/auto/qml/animation/qabstractanimationjob/tst_qabstractanimationjob.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QtQml/private/qabstractanimationjob_p.h> @@ -53,8 +53,7 @@ void tst_QAbstractAnimationJob::construction() void tst_QAbstractAnimationJob::destruction() { - TestableQAbstractAnimation *anim = new TestableQAbstractAnimation; - delete anim; + std::unique_ptr<TestableQAbstractAnimation> anim = std::make_unique<TestableQAbstractAnimation>(); } void tst_QAbstractAnimationJob::currentLoop() |