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>
This commit is contained in:
Berthold Stoeger 2018-03-06 10:38:21 +01:00 committed by Lubomir I. Ivanov
parent d2d46d848a
commit 8f4604ead8
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
#include <QNetworkReply>
class ImageDownloader : public QObject {
Q_OBJECT;
Q_OBJECT
public:
ImageDownloader(struct picture *picture);
~ImageDownloader();

View file

@ -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;