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

sk4425 at users.sourceforge.net sk4425 at users.sourceforge.net
Thu Jul 3 18:07:33 CEST 2008


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

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

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 14:28:24 UTC (rev 32892)
+++ scummvm/branches/gsoc2008-vkeybd/common/xmlparser.h	2008-07-03 16:07:33 UTC (rev 32893)
@@ -148,8 +148,8 @@
 	 *                   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