summaryrefslogtreecommitdiffstats
path: root/api/logic/Commandline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/Commandline.cpp')
-rw-r--r--api/logic/Commandline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/logic/Commandline.cpp b/api/logic/Commandline.cpp
index 32a605d6..751182af 100644
--- a/api/logic/Commandline.cpp
+++ b/api/logic/Commandline.cpp
@@ -44,7 +44,7 @@ QStringList splitArgs(QString args)
}
else if (!inquotes.isNull())
{
- if (cchar == 0x5C)
+ if (cchar == '\\')
escape = true;
else if (cchar == inquotes)
inquotes = 0;
@@ -54,7 +54,7 @@ QStringList splitArgs(QString args)
}
else
{
- if (cchar == 0x20)
+ if (cchar == ' ')
{
if (!current.isEmpty())
{
@@ -62,7 +62,7 @@ QStringList splitArgs(QString args)
current.clear();
}
}
- else if (cchar == 0x22 || cchar == 0x27)
+ else if (cchar == '"' || cchar == '\'')
inquotes = cchar;
else
current += cchar;