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

sk4425 at users.sourceforge.net sk4425 at users.sourceforge.net
Thu Jul 3 21:31:47 CEST 2008


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

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

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

Modified: scummvm/branches/gsoc2008-vkeybd/common/xmlparser.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/xmlparser.h	2008-07-03 16:25:59 UTC (rev 32895)
+++ scummvm/branches/gsoc2008-vkeybd/common/xmlparser.h	2008-07-03 19:31:46 UTC (rev 32896)
@@ -86,8 +86,6 @@
  * @see XMLParser::keyCallback()
  */
 class XMLParser {
-	/** Maximum depth for nested keys that the parser supports */
-	static const int kParserMaxDepth = 4;
 
 public:
 	/**
@@ -144,6 +142,7 @@
 	 * 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 @@
 	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