aboutsummaryrefslogtreecommitdiff
path: root/common/xmlparser.h
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-03 19:32:57 +0000
committerStephen Kennedy2008-07-03 19:32:57 +0000
commit919d81f03be0d3f03cb1fdca0735a9b3ae563af2 (patch)
tree0861cb8b779afb81ba6e0ae623390f595a51256c /common/xmlparser.h
parent52aba6b6daa020808f2b124ac83cf7d8fffa0ed4 (diff)
downloadscummvm-rg350-919d81f03be0d3f03cb1fdca0735a9b3ae563af2.tar.gz
scummvm-rg350-919d81f03be0d3f03cb1fdca0735a9b3ae563af2.tar.bz2
scummvm-rg350-919d81f03be0d3f03cb1fdca0735a9b3ae563af2.zip
Changed XMLParser to internally use a Stack rather than a FixedStack
svn-id: r32897
Diffstat (limited to 'common/xmlparser.h')
-rw-r--r--common/xmlparser.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h
index 94512c3ab7..fa1f10061a 100644
--- a/common/xmlparser.h
+++ b/common/xmlparser.h
@@ -86,8 +86,6 @@ public:
* @see XMLParser::keyCallback()
*/
class XMLParser {
- /** Maximum depth for nested keys that the parser supports */
- static const int kParserMaxDepth = 4;
public:
/**
@@ -333,14 +331,6 @@ protected:
return (*key == 0);
}
- /**
- * Internal state cleanup. Overload this if your parser needs
- * to clean itself up before doing a second parse.
- * E.g. the Theme Parser cleans the color palette after parsing
- * a theme.
- */
- virtual void cleanup() {}
-
int _pos; /** Current position on the XML buffer. */
XMLStream _text; /** Buffer with the text being parsed */
Common::String _fileName;
@@ -350,7 +340,7 @@ protected:
Common::String _error; /** Current error message */
Common::String _token; /** Current text token */
- Common::FixedStack<ParserNode*, kParserMaxDepth> _activeKey; /** Node stack of the parsed keys */
+ Common::Stack<ParserNode*> _activeKey; /** Node stack of the parsed keys */
};
}