diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index d4f474741..702d90a59 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -319,7 +319,7 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[]) reportOut("unusedFunctions check can't be used with -j option, so it was disabled."); } - if (pathnames.size() > 0) + if (!pathnames.empty()) { // Execute recursiveAddFiles() to each given file parameter std::vector::const_iterator iter;