Make Severity::none to match and output empty string.

This commit is contained in:
Kimmo Varis 2010-07-14 20:21:39 +03:00
parent 5f8af2e1e8
commit f54f28530b
1 changed files with 6 additions and 0 deletions

View File

@ -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")