diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2020-10-18 09:44:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 09:44:21 +0100 |
commit | a627bc24fa9cca59c4fb1cd15fd62f44673d95b8 (patch) | |
tree | dc51e5e1871306bc9942e0297a68bf5d8083ce59 /singleapplication.cpp | |
parent | Merge pull request #116 from jonaski/qt6-cmake (diff) | |
parent | Remove extra Q_D (diff) | |
download | singleapplication-a627bc24fa9cca59c4fb1cd15fd62f44673d95b8.tar.xz |
Merge pull request #114 from Shatur95/fix-clang-tidy-warnings
Fix Clang Tidy warnings
Diffstat (limited to 'singleapplication.cpp')
-rw-r--r-- | singleapplication.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index 0791096..a4f842e 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(); @@ -224,8 +224,7 @@ QString SingleApplication::primaryUser() */ QString SingleApplication::currentUser() { - Q_D( SingleApplication ); - return d->getUsername(); + return SingleApplicationPrivate::getUsername(); } /** |