From ba5017cf05f5247e2522cfcbeacb2970d1e2b457 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 14 Jul 2010 19:41:29 +0300 Subject: [PATCH] Add debug-severity to Severity::SeverityType. --- lib/errorlogger.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/errorlogger.h b/lib/errorlogger.h index 1e2234295..9c637cf06 100644 --- a/lib/errorlogger.h +++ b/lib/errorlogger.h @@ -33,7 +33,7 @@ class Tokenizer; class Severity { public: - enum SeverityType { none, error, style }; + enum SeverityType { none, error, style, debug }; static std::string toString(SeverityType severity) { switch (severity) @@ -44,6 +44,8 @@ public: return "error"; case style: return "style"; + case debug: + return "debug"; }; return "???"; } @@ -57,6 +59,8 @@ public: return error; if (severity == "style") return style; + if (severity == "debug") + return debug; return none; } };