aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 14:03:13 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 14:03:13 +0200
commitbdad412587e24a78af295818550e55e24ce5f6ff (patch)
treec9a02c49b0e53cacc1e447fea7dd28857eb60252 /src
parentRemove unknown option parsing (diff)
downloadsmolbote-bdad412587e24a78af295818550e55e24ce5f6ff.tar.xz
Fix CommandLine socketPath define
Diffstat (limited to 'src')
-rw-r--r--src/commandline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index f5e479c..5b48ac7 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -41,10 +41,10 @@ inline void printOption(const QCommandLineOption &option)
constexpr const char *socketPath()
{
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX)
// could be a path such as "/tmp/foo"
return "/tmp/smolbote.socket";
-#elif Q_OS_WIN32
+#elif defined(Q_OS_WIN32)
// could be a pipe path such as "\\.\pipe\foo"
return = "\\\\.\\pipe\\smolbote_socket";
#endif