[Scummvm-cvs-logs] SF.net SVN: scummvm: [32897] scummvm/branches/gsoc2008-gui/common/xmlparser .h

sk4425 at users.sourceforge.net sk4425 at users.sourceforge.net
Thu Jul 3 21:32:57 CEST 2008


Revision: 32897
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32897&view=rev
Author:   sk4425
Date:     2008-07-03 12:32:57 -0700 (Thu, 03 Jul 2008)

Log Message:
-----------
Changed XMLParser to internally use a Stack rather than a FixedStack

Modified Paths:
--------------
    scummvm/branches/gsoc2008-gui/common/xmlparser.h

Modified: scummvm/branches/gsoc2008-gui/common/xmlparser.h
===================================================================
--- scummvm/branches/gsoc2008-gui/common/xmlparser.h	2008-07-03 19:31:46 UTC (rev 32896)
+++ scummvm/branches/gsoc2008-gui/common/xmlparser.h	2008-07-03 19:32:57 UTC (rev 32897)
@@ -86,8 +86,6 @@
  * @see XMLParser::keyCallback()
  */
 class XMLParser {
-	/** Maximum depth for nested keys that the parser supports */
-	static const int kParserMaxDepth = 4;
 
 public:
 	/**
@@ -333,14 +331,6 @@
 		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 @@
 	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 */
 };
 
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list