diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-04-01 22:15:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 12:59:17 +0300 |
commit | c4c8094e32ad78dee558a80584470172f48c45b1 (patch) | |
tree | 4fede2acf0f1a3cee2182d96b1b3efa33e4fd8ff /core/qt-ble.h | |
parent | 2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6 (diff) | |
download | subsurface-c4c8094e32ad78dee558a80584470172f48c45b1.tar.gz |
get rid of some foreach and Q_FOREACH constructs
See https://www.kdab.com/goodbye-q_foreach/
This is reduced to the places where the container is const or can be made const
without the need to always introduce an extra variable. Sadly qAsConst (Qt 5.7)
and std::as_const (C++17) are not available in all supported setups.
Also do some minor cleanups along the way.
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'core/qt-ble.h')
-rw-r--r-- | core/qt-ble.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qt-ble.h b/core/qt-ble.h index 65e23964a..2b011163f 100644 --- a/core/qt-ble.h +++ b/core/qt-ble.h @@ -35,7 +35,7 @@ public slots: void characteristcStateChanged(const QLowEnergyCharacteristic &c, const QByteArray &value); void characteristicWritten(const QLowEnergyCharacteristic &c, const QByteArray &value); void writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value); - dc_status_t setupHwTerminalIo(QList<QLowEnergyCharacteristic>); + dc_status_t setupHwTerminalIo(const QList<QLowEnergyCharacteristic> &allC); dc_status_t setHwCredit(unsigned int c); private: QVector<QLowEnergyService *> services; |