summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-03-06 10:38:21 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-04-19 15:08:12 +0300
commit8f4604ead8ad1ab5fa96c509ce02eee4217717c3 (patch)
treed4cd312419fc794623858b6171832e242ec7df74
parentd2d46d848a9c3fc6df8875e37b0cbee97fd1a217 (diff)
downloadsubsurface-8f4604ead8ad1ab5fa96c509ce02eee4217717c3.tar.gz
Coding style: remove superfluous semicolons
Remove a semicolon after Q_OBJECT and a few others after the closing braces of while loops. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--core/imagedownloader.h2
-rw-r--r--core/qt-ble.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/core/imagedownloader.h b/core/imagedownloader.h
index dc42aee4d..04846a9cc 100644
--- a/core/imagedownloader.h
+++ b/core/imagedownloader.h
@@ -7,7 +7,7 @@
#include <QNetworkReply>
class ImageDownloader : public QObject {
- Q_OBJECT;
+ Q_OBJECT
public:
ImageDownloader(struct picture *picture);
~ImageDownloader();
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index 5ab81bf35..7353c753d 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -190,7 +190,7 @@ dc_status_t BLEObject::read(void *data, size_t size, size_t *actual)
while (msec > 0 && receivedPackets.isEmpty()) {
waitFor(100);
msec -= 100;
- };
+ }
}
// Still no packet?
@@ -236,7 +236,7 @@ dc_status_t BLEObject::setHwCredit(unsigned int c)
while (msec > 0 && !isCharacteristicWritten) {
waitFor(100);
msec -= 100;
- };
+ }
if (!isCharacteristicWritten)
return DC_STATUS_TIMEOUT;
return DC_STATUS_SUCCESS;
@@ -321,7 +321,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && controller->state() == QLowEnergyController::ConnectingState) {
waitFor(100);
msec -= 100;
- };
+ }
switch (controller->state()) {
case QLowEnergyController::ConnectedState:
@@ -353,7 +353,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && controller->state() == QLowEnergyController::DiscoveringState) {
waitFor(100);
msec -= 100;
- };
+ }
qDebug() << " .. done discovering services";
if (ble->preferredService() == nullptr) {
@@ -368,7 +368,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && ble->preferredService()->state() == QLowEnergyService::DiscoveringServices) {
waitFor(100);
msec -= 100;
- };
+ }
if (ble->preferredService()->state() != QLowEnergyService::ServiceDiscovered) {
qDebug() << "failed to find suitable service on" << devaddr;