From a312e53f0ce47dd2797070dff37e51fbfafd489a Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 21 May 2018 17:36:04 +0200 Subject: core: Change Q_UNUSED to no parameter name C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen --- core/qt-ble.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'core/qt-ble.cpp') diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 8c40b9b19..3deec8e65 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -47,10 +47,8 @@ static void waitFor(int ms) { extern "C" { -void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s) +void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState) { - Q_UNUSED(s) - QList list; auto service = qobject_cast(sender()); @@ -92,10 +90,8 @@ void BLEObject::characteristicWritten(const QLowEnergyCharacteristic &c, const Q } } -void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value) +void BLEObject::writeCompleted(const QLowEnergyDescriptor&, const QByteArray&) { - Q_UNUSED(value) - Q_UNUSED(d) qDebug() << "BLE write completed"; } @@ -149,8 +145,6 @@ BLEObject::~BLEObject() dc_status_t BLEObject::write(const void *data, size_t size, size_t *actual) { - Q_UNUSED(actual) // that seems like it might cause problems - if (actual) *actual = 0; if (!receivedPackets.isEmpty()) { @@ -274,9 +268,8 @@ dc_status_t BLEObject::setupHwTerminalIo(QList allC) return setHwCredit(MAXIMAL_HW_CREDIT); } -dc_status_t qt_ble_open(void **io, dc_context_t *context, const char *devaddr, dc_user_device_t *user_device) +dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_device_t *user_device) { - Q_UNUSED(context) debugCounter = 0; QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); -- cgit v1.2.3-70-g09d2