diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index d9f55b370..6c954011e 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -578,13 +578,12 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) mSettings->plistOutput += '/'; const std::string plistOutput = Path::toNativeSeparators(mSettings->plistOutput); - if (!FileLister::isDirectory(plistOutput)) - { - std::string message("cppcheck: error: plist folder does not exist: \""); - message += plistOutput; - message += "\"."; - printMessage(message); - return false; + if (!FileLister::isDirectory(plistOutput)) { + std::string message("cppcheck: error: plist folder does not exist: \""); + message += plistOutput; + message += "\"."; + printMessage(message); + return false; } } diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 4604029c1..8c7a9f9d9 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -516,7 +516,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string filename2 = filename.substr(filename.rfind('/') + 1); else filename2 = filename; - std::size_t fileNameHash = std::hash{}(filename); + std::size_t fileNameHash = std::hash {}(filename); filename2 = mSettings.plistOutput + filename2.substr(0, filename2.find('.')) + "_" + std::to_string(fileNameHash) + ".plist"; plistFile.open(filename2); plistFile << ErrorLogger::plistHeader(version(), files);