diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-21 17:36:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-21 12:48:04 -0700 |
commit | a312e53f0ce47dd2797070dff37e51fbfafd489a (patch) | |
tree | bb603a4ffafc2dea632a587e6cc5b7cdb91f73ca /core/qt-ble.cpp | |
parent | 034f9a6ca2eabcc4714214ca07207509b00e39a2 (diff) | |
download | subsurface-a312e53f0ce47dd2797070dff37e51fbfafd489a.tar.gz |
core: Change Q_UNUSED to no parameter name
C++ permits use of parameters without name, which signals unused
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r-- | core/qt-ble.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
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<QLowEnergyCharacteristic> list; auto service = qobject_cast<QLowEnergyService*>(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<QLowEnergyCharacteristic> 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")); |