aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-03 19:31:46 +0000
committerStephen Kennedy2008-07-03 19:31:46 +0000
commit7c60bb50e8f8a95d4f5b6bb38eb156417106a135 (patch)
tree5aed5213d6eac9ea5163acecb53cf4b6ca62ce98
parent903a80ece353ade7aaf7c20b8cf5cfa3f59c04bb (diff)
downloadscummvm-rg350-7c60bb50e8f8a95d4f5b6bb38eb156417106a135.tar.gz
scummvm-rg350-7c60bb50e8f8a95d4f5b6bb38eb156417106a135.tar.bz2
scummvm-rg350-7c60bb50e8f8a95d4f5b6bb38eb156417106a135.zip
Changed XMLParser to internally use a Stack rather than a FixedStack
svn-id: r32896
-rw-r--r--common/xmlparser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h
index e458daaeba..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:
/**
@@ -144,6 +142,7 @@ public:
* from memory if no themes can be found.
*
* @param buffer Pointer to the buffer.
+ * @param size Size of the buffer
* @param disposable Sets if the XMLParser owns the buffer,
* i.e. if it can be freed safely after it's
* no longer needed by the parser.
@@ -341,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 */
};
}