diff options
author | Shatur95 <genaloner@gmail.com> | 2020-12-21 19:07:36 +0200 |
---|---|---|
committer | Shatur95 <genaloner@gmail.com> | 2020-12-21 19:07:36 +0200 |
commit | 7bdb497a839e5590418970a0795aa0862c8ed93b (patch) | |
tree | 5634577eb0052a37099614224511f9f3c1869555 | |
parent | Merge pull request #122 from LorenDB/master (diff) | |
download | singleapplication-7bdb497a839e5590418970a0795aa0862c8ed93b.tar.xz |
Pass usedData by const reference
-rw-r--r-- | singleapplication.cpp | 2 | ||||
-rw-r--r-- | singleapplication.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index 276ceee..6279713 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -36,7 +36,7 @@ * @param options Optional flags to toggle specific behaviour * @param timeout Maximum time blocking functions are allowed during app load */ -SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary, Options options, int timeout, QString userData ) +SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary, Options options, int timeout, const QString &userData ) : app_t( argc, argv ), d_ptr( new SingleApplicationPrivate( this ) ) { Q_D( SingleApplication ); diff --git a/singleapplication.h b/singleapplication.h index d39a661..8768012 100644 --- a/singleapplication.h +++ b/singleapplication.h @@ -85,7 +85,7 @@ public: * Usually 4*timeout would be the worst case (fail) scenario. * @see See the corresponding QAPPLICATION_CLASS constructor for reference */ - explicit SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 1000, QString userData = QString() ); + explicit SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 1000, const QString &userData = {} ); ~SingleApplication() override; /** |