[Scummvm-cvs-logs] SF.net SVN: scummvm:[53736] scummvm/trunk/engines/saga/saga.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Oct 23 17:44:55 CEST 2010
Revision: 53736
http://scummvm.svn.sourceforge.net/scummvm/?rev=53736&view=rev
Author: fingolfin
Date: 2010-10-23 15:44:55 +0000 (Sat, 23 Oct 2010)
Log Message:
-----------
SAGA: Improve comment for ByteArray::getBuffer()
Modified Paths:
--------------
scummvm/trunk/engines/saga/saga.h
Modified: scummvm/trunk/engines/saga/saga.h
===================================================================
--- scummvm/trunk/engines/saga/saga.h 2010-10-23 15:44:33 UTC (rev 53735)
+++ scummvm/trunk/engines/saga/saga.h 2010-10-23 15:44:55 UTC (rev 53736)
@@ -460,8 +460,11 @@
class ByteArray : public Common::Array<byte> {
public:
-
- byte * getBuffer() { // call this method instead of "&front()" if you insure of array emptyness state
+ /**
+ * Return a pointer to the start of the buffer underlying this byte array,
+ * or NULL if the buffer is empty.
+ */
+ byte *getBuffer() {
return empty() ? NULL : &front();
}
};
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