XML2: Added severity 'portability' for future use. Ticket: #2106

This commit is contained in:
Daniel Marjamäki 2010-12-11 21:54:06 +01:00
parent 71146a444b
commit 1cfd3309bc
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Tokenizer;
class Severity
{
public:
enum SeverityType { none, error, warning, style, performance, debug };
enum SeverityType { none, error, warning, style, performance, portability, debug };
static std::string toString(SeverityType severity)
{
switch (severity)
@ -48,6 +48,8 @@ public:
return "style";
case performance:
return "performance";
case portability:
return "portability";
case debug:
return "debug";
};
@ -67,6 +69,8 @@ public:
return style;
if (severity == "performance")
return performance;
if (severity == "portability")
return portability;
if (severity == "debug")
return debug;
return none;