Index: Source/core/xml/XMLErrors.cpp |
diff --git a/Source/core/xml/XMLErrors.cpp b/Source/core/xml/XMLErrors.cpp |
index ba6ca44c092c7e0d3d0056b8a779f216bb33f528..6db8d64cb4c3aee559a06f78176c08fc486c630b 100644 |
--- a/Source/core/xml/XMLErrors.cpp |
+++ b/Source/core/xml/XMLErrors.cpp |
@@ -61,13 +61,13 @@ void XMLErrors::handleError(ErrorType type, const char* message, int lineNumber, |
void XMLErrors::handleError(ErrorType type, const char* message, TextPosition position) |
{ |
- if (type == fatal || (m_errorCount < maxErrors && m_lastErrorPosition.m_line != position.m_line && m_lastErrorPosition.m_column != position.m_column)) { |
+ if (type == ErrorTypeFatal || (m_errorCount < maxErrors && m_lastErrorPosition.m_line != position.m_line && m_lastErrorPosition.m_column != position.m_column)) { |
switch (type) { |
- case warning: |
+ case ErrorTypeWarning: |
appendErrorMessage("warning", position, message); |
break; |
- case fatal: |
- case nonFatal: |
+ case ErrorTypeFatal: |
+ case ErrorTypeNonFatal: |
appendErrorMessage("error", position, message); |
} |