diff --git a/tests/TestOpVaultReader.cpp b/tests/TestOpVaultReader.cpp index b23828d42..94b5c35f0 100644 --- a/tests/TestOpVaultReader.cpp +++ b/tests/TestOpVaultReader.cpp @@ -68,7 +68,7 @@ void TestOpVaultReader::testReadIntoDatabase() QDir opVaultDir(m_opVaultPath); OpVaultReader reader; - auto db = reader.readDatabase(opVaultDir, "a"); + QScopedPointer db(reader.readDatabase(opVaultDir, "a")); QVERIFY(db); QVERIFY2(!reader.hasError(), qPrintable(reader.errorString()));