diff --git a/src/wayland/autotests/client/test_wayland_appmenu.cpp b/src/wayland/autotests/client/test_wayland_appmenu.cpp index fee3ca3919..7577a94bf1 100644 --- a/src/wayland/autotests/client/test_wayland_appmenu.cpp +++ b/src/wayland/autotests/client/test_wayland_appmenu.cpp @@ -35,7 +35,7 @@ License along with this library. If not, see . using namespace KWayland::Client; -Q_DECLARE_METATYPE(KWayland::Server::AppMenuInterface::InterfaceAddress); +Q_DECLARE_METATYPE(KWayland::Server::AppMenuInterface::InterfaceAddress) class TestAppmenu : public QObject { @@ -181,8 +181,8 @@ void TestAppmenu::testCreateAndSet() appmenu->setAddress("net.somename", "/test/path"); QVERIFY(appMenuChangedSpy.wait()); - QCOMPARE(appMenuInterface->address().serviceName, "net.somename"); - QCOMPARE(appMenuInterface->address().objectPath, "/test/path"); + QCOMPARE(appMenuInterface->address().serviceName, QString("net.somename")); + QCOMPARE(appMenuInterface->address().objectPath, QString("/test/path")); // and destroy QSignalSpy destroyedSpy(appMenuInterface, &QObject::destroyed);