Remove redundant comparison
This commit is contained in:
parent
07f41f4563
commit
9df2b84233
|
@ -181,15 +181,12 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[])
|
||||||
else if (strcmp(argv[i], "--template") == 0)
|
else if (strcmp(argv[i], "--template") == 0)
|
||||||
{
|
{
|
||||||
// "--template path/"
|
// "--template path/"
|
||||||
if (strcmp(argv[i], "--template") == 0)
|
|
||||||
{
|
|
||||||
++i;
|
++i;
|
||||||
if (i >= argc)
|
if (i >= argc)
|
||||||
return "cppcheck: argument to '--template' is missing\n";
|
return "cppcheck: argument to '--template' is missing\n";
|
||||||
|
|
||||||
_settings._outputFormat = argv[i];
|
_settings._outputFormat = argv[i];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Include paths
|
// Include paths
|
||||||
else if (strcmp(argv[i], "-j") == 0 ||
|
else if (strcmp(argv[i], "-j") == 0 ||
|
||||||
|
|
Loading…
Reference in New Issue