diff options
author | Shatur95 <genaloner@gmail.com> | 2020-10-15 21:41:00 +0300 |
---|---|---|
committer | Shatur95 <genaloner@gmail.com> | 2020-10-15 21:41:00 +0300 |
commit | e17c715faf300bd120b13039843bb02e36ce1253 (patch) | |
tree | e17e318434f5d14b21ffe25f7e3be1e9fb0189f2 /singleapplication.cpp | |
parent | Merge pull request #113 from Shatur95/fix-conversion-warning (diff) | |
download | singleapplication-e17c715faf300bd120b13039843bb02e36ce1253.tar.xz |
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
Diffstat (limited to 'singleapplication.cpp')
-rw-r--r-- | singleapplication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } /** |