diff options
Diffstat (limited to 'tools/lldb-mi/MIDriverMgr.cpp')
-rw-r--r-- | tools/lldb-mi/MIDriverMgr.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/tools/lldb-mi/MIDriverMgr.cpp b/tools/lldb-mi/MIDriverMgr.cpp index 6b39832d736e..93070a5912d6 100644 --- a/tools/lldb-mi/MIDriverMgr.cpp +++ b/tools/lldb-mi/MIDriverMgr.cpp @@ -516,29 +516,27 @@ bool CMIDriverMgr::ParseArgs(const int argc, const char *argv[], const CMIUtilString strArg(argv[i]); // Argument "--executable" is also check for in CMIDriver::ParseArgs() - if ((0 == - strArg.compare( - "--interpreter")) || // Given by the client such as Eclipse - (0 == strArg.compare("--executable"))) // Used to specify that there - // is executable argument also - // on the command line - { // See fn description. + if (("--interpreter" == strArg) || // Given by the client such as Eclipse + ("--executable" == strArg)) // Used to specify that there + // is executable argument also + // on the command line + { // See fn description. bHaveArgInterpret = true; } - if (0 == strArg.compare("--version")) { + if ("--version" == strArg) { bHaveArgVersion = true; } - if (0 == strArg.compare("--versionLong")) { + if ("--versionLong" == strArg) { bHaveArgVersionLong = true; } - if (0 == strArg.compare("--log")) { + if ("--log" == strArg) { bHaveArgLog = true; } if (0 == strArg.compare(0, 10, "--log-dir=")) { strLogDir = strArg.substr(10, CMIUtilString::npos); bHaveArgLogDir = true; } - if ((0 == strArg.compare("--help")) || (0 == strArg.compare("-h"))) { + if (("--help" == strArg) || ("-h" == strArg)) { bHaveArgHelp = true; } } |