mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8f4604ead8
commit
529d407933
1 changed files with 3 additions and 3 deletions
|
@ -32,9 +32,7 @@ static int debugCounter;
|
||||||
#define MAXIMAL_HW_CREDIT 255
|
#define MAXIMAL_HW_CREDIT 255
|
||||||
#define MINIMAL_HW_CREDIT 32
|
#define MINIMAL_HW_CREDIT 32
|
||||||
|
|
||||||
extern "C" {
|
static void waitFor(int ms) {
|
||||||
|
|
||||||
void waitFor(int ms) {
|
|
||||||
Q_ASSERT(QCoreApplication::instance());
|
Q_ASSERT(QCoreApplication::instance());
|
||||||
Q_ASSERT(QThread::currentThread());
|
Q_ASSERT(QThread::currentThread());
|
||||||
|
|
||||||
|
@ -48,6 +46,8 @@ void waitFor(int ms) {
|
||||||
} while (timer.elapsed() < ms);
|
} while (timer.elapsed() < ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s)
|
void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s)
|
||||||
{
|
{
|
||||||
Q_UNUSED(s)
|
Q_UNUSED(s)
|
||||||
|
|
Loading…
Add table
Reference in a new issue