[Scummvm-cvs-logs] SF.net SVN: scummvm:[48333] scummvm/trunk/engines/teenagent/detection.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Sat Mar 20 20:48:22 CET 2010
Revision: 48333
http://scummvm.svn.sourceforge.net/scummvm/?rev=48333&view=rev
Author: megath
Date: 2010-03-20 19:48:21 +0000 (Sat, 20 Mar 2010)
Log Message:
-----------
textual cleanups
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/detection.cpp
Modified: scummvm/trunk/engines/teenagent/detection.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/detection.cpp 2010-03-20 18:15:32 UTC (rev 48332)
+++ scummvm/trunk/engines/teenagent/detection.cpp 2010-03-20 19:48:21 UTC (rev 48333)
@@ -87,8 +87,9 @@
typedef T ValueType;
typedef T *PointerType;
- inline explicit ScopedPtr(T *o = NULL): object(o) {}
+ inline explicit ScopedPtr(T *o = 0): object(o) {}
+ inline T& operator*() const { return *object; }
inline T *operator->() const { return object; }
inline operator T*() const { return object; }
inline operator bool() const { return object != NULL; }
@@ -97,12 +98,12 @@
delete object;
}
- inline void reset(T * o) {
+ inline void reset(T *o = 0) {
delete object;
object = o;
}
- inline T *get() { return object; }
+ inline T *get() const { return object; }
inline T *release() {
T *r = object;
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