From e17c715faf300bd120b13039843bb02e36ce1253 Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Thu, 15 Oct 2020 21:41:00 +0300 Subject: Fix Clang Tidy warnings readability-convert-member-functions-to-static readability-static-accessed-through-instance readability-make-member-function-const readability-inconsistent-declaration-parameter-name --- singleapplication.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'singleapplication.cpp') diff --git a/singleapplication.cpp b/singleapplication.cpp index 0791096..246de25 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -57,7 +57,7 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda // To mitigate QSharedMemory issues with large amount of processes // attempting to attach at the same time - d->randomSleep(); + SingleApplicationPrivate::randomSleep(); #ifdef Q_OS_UNIX // By explicitly attaching it and then deleting it we make sure that the @@ -117,7 +117,7 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda qDebug() << "SingleApplication: Unable to unlock memory for random wait."; qDebug() << d->memory->errorString(); } - d->randomSleep(); + SingleApplicationPrivate::randomSleep(); if( ! d->memory->lock() ){ qCritical() << "SingleApplication: Unable to lock memory after random wait."; abortSafely(); @@ -225,7 +225,7 @@ QString SingleApplication::primaryUser() QString SingleApplication::currentUser() { Q_D( SingleApplication ); - return d->getUsername(); + return SingleApplicationPrivate::getUsername(); } /** -- cgit v1.2.1