diff --git a/tests/units/presentation/noteinboxpagemodeltest.cpp b/tests/units/presentation/noteinboxpagemodeltest.cpp --- a/tests/units/presentation/noteinboxpagemodeltest.cpp +++ b/tests/units/presentation/noteinboxpagemodeltest.cpp @@ -115,7 +115,7 @@ QCOMPARE(note2->title(), QStringLiteral("newNote2")); // WHEN - QMimeData *data = model->mimeData(QModelIndexList() << note2Index); + auto data = QSharedPointer(model->mimeData(QModelIndexList() << note2Index)); // THEN QVERIFY(data->hasFormat(QStringLiteral("application/x-zanshin-object")));