diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-04-18 18:52:30 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-19 15:08:12 +0300 |
commit | 529d4079337a49b132a3b264cd092f4b5c418628 (patch) | |
tree | cb404762750594dead78f9b2089bd3f64a1b4bc3 | |
parent | 8f4604ead8ad1ab5fa96c509ce02eee4217717c3 (diff) | |
download | subsurface-529d4079337a49b132a3b264cd092f4b5c418628.tar.gz |
Cleanup: Make local function waitFor() of static linkage
Moreover, remove it from the `extern "C"` block, since extern/static
is oxymoronic.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/qt-ble.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 7353c753d..8a29bedf3 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -32,9 +32,7 @@ static int debugCounter; #define MAXIMAL_HW_CREDIT 255 #define MINIMAL_HW_CREDIT 32 -extern "C" { - -void waitFor(int ms) { +static void waitFor(int ms) { Q_ASSERT(QCoreApplication::instance()); Q_ASSERT(QThread::currentThread()); @@ -48,6 +46,8 @@ void waitFor(int ms) { } while (timer.elapsed() < ms); } +extern "C" { + void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s) { Q_UNUSED(s) |