diff options
Diffstat (limited to 'tests/auto/installer/moveoperation/tst_moveoperation.cpp')
-rw-r--r-- | tests/auto/installer/moveoperation/tst_moveoperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/installer/moveoperation/tst_moveoperation.cpp b/tests/auto/installer/moveoperation/tst_moveoperation.cpp index 6bc72242a..136eb1e45 100644 --- a/tests/auto/installer/moveoperation/tst_moveoperation.cpp +++ b/tests/auto/installer/moveoperation/tst_moveoperation.cpp @@ -42,8 +42,8 @@ class tst_moveoperation : public QObject private: void installFromCLI(const QString &repository) { - PackageManagerCore *core = PackageManager::getPackageManagerWithInit - (m_testDirectory, repository); + QScopedPointer<PackageManagerCore> core(PackageManager::getPackageManagerWithInit + (m_testDirectory, repository)); core->installDefaultComponentsSilently(); QFile movedFile(m_testDirectory + QDir::separator() + "DestinationFolder/testFile.txt"); |