From f54f28530b24ff97c0eebe753cddc896e96c361e Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 14 Jul 2010 20:21:39 +0300 Subject: [PATCH] Make Severity::none to match and output empty string. --- lib/errorlogger.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/errorlogger.h b/lib/errorlogger.h index 894b7f335..1e2234295 100644 --- a/lib/errorlogger.h +++ b/lib/errorlogger.h @@ -38,6 +38,8 @@ public: { switch (severity) { + case none: + return ""; case error: return "error"; case style: @@ -47,6 +49,10 @@ public: } static SeverityType fromString(const std::string &severity) { + if (severity.empty()) + return none; + if (severity == "none") + return none; if (severity == "error") return error; if (severity == "style")