From 85d68885048c7088a78f2d16be67633945a525ab Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Thu, 1 Oct 2020 12:17:42 +0530 Subject: [PATCH] autotests: fix minor compile time warnings --- .../autotests/server/test_datacontrol_interface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wayland/autotests/server/test_datacontrol_interface.cpp b/src/wayland/autotests/server/test_datacontrol_interface.cpp index d32e2fce50..db1d84bfc3 100644 --- a/src/wayland/autotests/server/test_datacontrol_interface.cpp +++ b/src/wayland/autotests/server/test_datacontrol_interface.cpp @@ -43,8 +43,8 @@ using namespace KWaylandServer; // Faux-client API for tests -Q_DECLARE_OPAQUE_POINTER(::zwlr_data_control_offer_v1*); -Q_DECLARE_METATYPE(::zwlr_data_control_offer_v1*); +Q_DECLARE_OPAQUE_POINTER(::zwlr_data_control_offer_v1*) +Q_DECLARE_METATYPE(::zwlr_data_control_offer_v1*) class DataControlDeviceManager : public QObject, public QtWayland::zwlr_data_control_manager_v1 { @@ -112,12 +112,12 @@ public: ~TestDataSource() { emit unbound(); } - void requestData(const QString &mimeType, qint32 fd) { + void requestData(const QString &mimeType, qint32 fd) override { Q_UNUSED(mimeType); Q_UNUSED(fd); }; - void cancel() {}; - QStringList mimeTypes() const { + void cancel() override {}; + QStringList mimeTypes() const override { return {"text/test1", "text/test2"}; } };