From 04d4e5e32e29e37e95b134fd52e92df9b9efac33 Mon Sep 17 00:00:00 2001 From: makulik Date: Wed, 30 Nov 2011 20:35:04 +0100 Subject: [PATCH] Run astyle Signed-off-by: makulik --- cli/cmdlineparser.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index ec9beba5a..e9f7b13df 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -325,17 +325,14 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) _settings->userDefines += define; } // User undef - else if (strncmp(argv[i], "-U", 2) == 0) - { + else if (strncmp(argv[i], "-U", 2) == 0) { std::string undef; // "-U undef" - if (strcmp(argv[i], "-U") == 0) - { + if (strcmp(argv[i], "-U") == 0) { ++i; if (i >= argc || strncmp(argv[i], "-", 1) == 0 || - strncmp(argv[i], "--", 2) == 0) - { + strncmp(argv[i], "--", 2) == 0) { PrintMessage("cppcheck: argument to '-U' is missing."); return false; } @@ -343,8 +340,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) undef = argv[i]; } // "-Uundef" - else - { + else { undef = 2 + argv[i]; }