[Scummvm-cvs-logs] SF.net SVN: scummvm: [31248] scummvm/trunk/common/stream.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Mar 26 22:16:16 CET 2008


Revision: 31248
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31248&view=rev
Author:   lordhoto
Date:     2008-03-26 14:16:16 -0700 (Wed, 26 Mar 2008)

Log Message:
-----------
Added some inlines to MemoryReadStreamEndian.

Modified Paths:
--------------
    scummvm/trunk/common/stream.h

Modified: scummvm/trunk/common/stream.h
===================================================================
--- scummvm/trunk/common/stream.h	2008-03-26 20:49:45 UTC (rev 31247)
+++ scummvm/trunk/common/stream.h	2008-03-26 21:16:16 UTC (rev 31248)
@@ -413,11 +413,11 @@
 	bool _bigEndian;
 	MemoryReadStreamEndian(const byte *buf, uint32 len, bool bigEndian = false) : MemoryReadStream(buf, len), _bigEndian(bigEndian) {}
 
-	uint16 readUint16() {
+	inline uint16 readUint16() {
 		return (_bigEndian) ? readUint16BE(): readUint16LE();
 	}
 
-	uint32 readUint32() {
+	inline uint32 readUint32() {
 		return (_bigEndian) ? readUint32BE(): readUint32LE();
 	}
 
@@ -425,7 +425,6 @@
 		return (int16)readUint16();
 	}
 
-
 	inline int32 readSint32() {
 		return (int32)readUint32();
 	}


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