diff options
author | Leander Schulten <Leander.Schulten@rwth-aachen.de> | 2020-03-27 07:52:48 +0100 |
---|---|---|
committer | Leander Schulten <Leander.Schulten@rwth-aachen.de> | 2020-03-27 07:52:48 +0100 |
commit | 49c282a64c2e357185cce851f7ce02f426a58afb (patch) | |
tree | 24455aff3ea8fe029b8090f35edcc18eb74d7e1a /singleapplication_p.h | |
parent | Merge pull request #96 from itay-grudev/primary_user (diff) | |
download | singleapplication-49c282a64c2e357185cce851f7ce02f426a58afb.tar.xz |
The codec for string from qgetenv and pw->pw_name is not necessarily utf8. So use QString::fromLocal8Bit and QStrings.
Diffstat (limited to 'singleapplication_p.h')
-rw-r--r-- | singleapplication_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/singleapplication_p.h b/singleapplication_p.h index 5161411..2682b87 100644 --- a/singleapplication_p.h +++ b/singleapplication_p.h @@ -70,9 +70,9 @@ public: Q_DECLARE_PUBLIC(SingleApplication) SingleApplicationPrivate( SingleApplication *q_ptr ); - ~SingleApplicationPrivate(); + ~SingleApplicationPrivate(); - QByteArray getUsername(); + QString getUsername(); void genBlockServerName(); void initializeMemoryBlock(); void startPrimary(); |