diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index c60dff28a7d..64942aab79b 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -427,7 +427,7 @@ std::string ErrorMessage::getXMLHeader(std::string productName) { const auto nameAndVersion = Settings::getNameAndVersion(productName); productName = nameAndVersion.first; - const std::string version = (!nameAndVersion.first.empty()) ? CppCheck::version() : nameAndVersion.second; + const std::string version = nameAndVersion.first.empty() ? CppCheck::version() : nameAndVersion.second; tinyxml2::XMLPrinter printer;