diff options
Diffstat (limited to 'plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp')
-rw-r--r-- | plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp index 5330492..9cd8373 100644 --- a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.cpp @@ -6,17 +6,17 @@ #include <stdio.h> -const QString ExtraSocketCatchcopy::pathSocket() +const std::string ExtraSocketCatchcopy::pathSocket() { #ifdef Q_OS_UNIX - return "advanced-copier-"+QString::number(getuid()); + return "advanced-copier-"+std::to_string(getuid()); #else QString userName; char uname[1024]; DWORD len=1023; if(GetUserNameA(uname, &len)!=FALSE) userName=QString::fromLatin1(toHex(uname)); - return "advanced-copier-"+userName; + return "advanced-copier-"+userName.toStdString(); #endif } |