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

sk4425 at users.sourceforge.net sk4425 at users.sourceforge.net
Thu Jul 3 18:09:54 CEST 2008


Revision: 32894
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32894&view=rev
Author:   sk4425
Date:     2008-07-03 09:09:54 -0700 (Thu, 03 Jul 2008)

Log Message:
-----------
changed loadBuffer to use byte* rather than char*

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 16:07:33 UTC (rev 32893)
+++ scummvm/branches/gsoc2008-gui/common/xmlparser.h	2008-07-03 16:09:54 UTC (rev 32894)
@@ -144,12 +144,13 @@
 	 * 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.
 	 */
-	virtual bool loadBuffer(const char *buffer, bool disposable = false) {
-		_text.loadStream(new MemoryReadStream((const byte*)buffer, strlen(buffer), disposable));
+	virtual bool loadBuffer(const byte *buffer, uint32 size, bool disposable = false) {
+		_text.loadStream(new MemoryReadStream(buffer, size, disposable));
 		_fileName = "Memory Stream";
 		return true;
 	}


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