mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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 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)
|
||||
|
|
Loading…
Reference in a new issue