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