diff options
author | Vladimir Menshakov | 2010-03-20 19:48:21 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-20 19:48:21 +0000 |
commit | 3c884abfa6d6f2fe1f99f275d526952783c3962b (patch) | |
tree | f449ea0b34e99ee5c7499a98a80b06b713905f94 /engines | |
parent | 88656ae7c624c897daa20100d009d91fef083f6b (diff) | |
download | scummvm-rg350-3c884abfa6d6f2fe1f99f275d526952783c3962b.tar.gz scummvm-rg350-3c884abfa6d6f2fe1f99f275d526952783c3962b.tar.bz2 scummvm-rg350-3c884abfa6d6f2fe1f99f275d526952783c3962b.zip |
textual cleanups
svn-id: r48333
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/detection.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp index 559b3c8b17..7dd058d6b2 100644 --- a/engines/teenagent/detection.cpp +++ b/engines/teenagent/detection.cpp @@ -87,8 +87,9 @@ public: 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 @@ public: 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; |