From 9df2b842332745eb958417446203976e1af7f19e Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sun, 27 Sep 2009 17:53:09 +0300 Subject: [PATCH] Remove redundant comparison --- src/cppcheck.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/cppcheck.cpp b/src/cppcheck.cpp index a7adbfd90..62f9fb355 100644 --- a/src/cppcheck.cpp +++ b/src/cppcheck.cpp @@ -181,14 +181,11 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[]) else if (strcmp(argv[i], "--template") == 0) { // "--template path/" - if (strcmp(argv[i], "--template") == 0) - { - ++i; - if (i >= argc) - return "cppcheck: argument to '--template' is missing\n"; + ++i; + if (i >= argc) + return "cppcheck: argument to '--template' is missing\n"; - _settings._outputFormat = argv[i]; - } + _settings._outputFormat = argv[i]; } // Include paths