diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-10-04 10:49:24 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2017-10-16 07:56:49 +0000 |
commit | 187fd96f35fa212dfce4c2bf3c417096ca33c8f1 (patch) | |
tree | eac8380c22d68f5bea32f38d07b565fb9b783a37 /tests | |
parent | b835a36267688b29e8dd3ffccd84f129ebfdd402 (diff) | |
download | qtwayland-187fd96f35fa212dfce4c2bf3c417096ca33c8f1.tar.gz |
Tests: Add missing Q_UNUSEDs
Change-Id: Ifc7e5d000b7f5d75fb899d2294008f8dcabca777
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/client/client/mockinput.cpp | 7 | ||||
-rw-r--r-- | tests/auto/client/client/tst_client.cpp | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/client/client/mockinput.cpp b/tests/auto/client/client/mockinput.cpp index 6bc27f10..9e568921 100644 --- a/tests/auto/client/client/mockinput.cpp +++ b/tests/auto/client/client/mockinput.cpp @@ -194,6 +194,7 @@ void Compositor::sendDataDeviceLeave(void *data, const QList<QVariant> ¶mete void Compositor::waitForStartDrag(void *data, const QList<QVariant> ¶meters) { + Q_UNUSED(parameters); Compositor *compositor = static_cast<Compositor *>(data); Q_ASSERT(compositor); while (!compositor->m_startDragSeen) { @@ -443,6 +444,11 @@ DataDevice::~DataDevice() void DataDevice::data_device_start_drag(QtWaylandServer::wl_data_device::Resource *resource, wl_resource *source, wl_resource *origin, wl_resource *icon, uint32_t serial) { + Q_UNUSED(resource); + Q_UNUSED(source); + Q_UNUSED(origin); + Q_UNUSED(icon); + Q_UNUSED(serial); m_compositor->m_startDragSeen = true; } @@ -465,6 +471,7 @@ DataDevice *DataDeviceManager::dataDevice() const void DataDeviceManager::data_device_manager_get_data_device(Resource *resource, uint32_t id, struct ::wl_resource *seat) { + Q_UNUSED(seat); if (!m_data_device) m_data_device.reset(new DataDevice(m_compositor)); m_data_device->add(resource->client(), id, 1); diff --git a/tests/auto/client/client/tst_client.cpp b/tests/auto/client/client/tst_client.cpp index 8acddfbe..0a3c7bef 100644 --- a/tests/auto/client/client/tst_client.cpp +++ b/tests/auto/client/client/tst_client.cpp @@ -93,6 +93,7 @@ public: void touchEvent(QTouchEvent *event) override { + Q_UNUSED(event); ++touchEventCount; } @@ -272,6 +273,7 @@ public: protected: void mousePressEvent(QMouseEvent *event) override { + Q_UNUSED(event); if (dragStarted) return; dragStarted = true; |