diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index 8a61d6154..3d6bf459c 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -546,7 +546,6 @@ std::string ErrorLogger::ErrorMessage::FileLocation::stringify() const std::string ErrorLogger::toxml(const std::string &str) { std::ostringstream xml; - const bool isstring(str[0] == '\"'); for (std::size_t i = 0U; i < str.length(); i++) { char c = str[i]; switch (c) { @@ -566,7 +565,7 @@ std::string ErrorLogger::toxml(const std::string &str) xml << "\\0"; break; default: - if (!isstring || (c >= ' ' && c <= 'z')) + if (c >= ' ' && c <= 'z') xml << c; else xml << 'x';