diff options
author | Christoph Mallon | 2012-03-15 10:40:04 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-03-17 20:03:53 +0100 |
commit | 991d5364be542b54c5dc62be1a75cacf635c39f6 (patch) | |
tree | ffcb65ec3bef1cdfadb9885600f65100bb1fa25d /base | |
parent | 2b57ccfd5e9ce6f1a834fc20de4ea339743692ce (diff) | |
download | scummvm-rg350-991d5364be542b54c5dc62be1a75cacf635c39f6.tar.gz scummvm-rg350-991d5364be542b54c5dc62be1a75cacf635c39f6.tar.bz2 scummvm-rg350-991d5364be542b54c5dc62be1a75cacf635c39f6.zip |
COMMON: Add a space between a string literal and a macro parameter so C++11 does not think the latter is a string literal suffix.
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 08838167e9..d877c58718 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -277,12 +277,12 @@ void registerDefaults() { // Use this for boolean options; this distinguishes between "-x" and "-X", // resp. between "--some-option" and "--no-some-option". #define DO_OPTION_BOOL(shortCmd, longCmd) \ - if (isLongCmd ? (!strcmp(s+2, longCmd) || !strcmp(s+2, "no-"longCmd)) : (tolower(s[1]) == shortCmd)) { \ + if (isLongCmd ? (!strcmp(s+2, longCmd) || !strcmp(s+2, "no-" longCmd)) : (tolower(s[1]) == shortCmd)) { \ bool boolValue = (Common::isLower(s[1]) != 0); \ s += 2; \ if (isLongCmd) { \ boolValue = !strcmp(s, longCmd); \ - s += boolValue ? (sizeof(longCmd) - 1) : (sizeof("no-"longCmd) - 1); \ + s += boolValue ? (sizeof(longCmd) - 1) : (sizeof("no-" longCmd) - 1); \ } \ if (*s != '\0') goto unknownOption; \ const char *option = boolValue ? "true" : "false"; \ |