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 @@ -23,6 +23,10 @@ #include +#include + +#include + #include "utils/mockobject.h" #include "presentation/noteinboxpagemodel.h" @@ -115,7 +119,7 @@ QCOMPARE(note2->title(), QStringLiteral("newNote2")); // WHEN - QMimeData *data = model->mimeData(QModelIndexList() << note2Index); + auto data = std::unique_ptr(model->mimeData(QModelIndexList() << note2Index)); // THEN QVERIFY(data->hasFormat(QStringLiteral("application/x-zanshin-object")));