diff options
author | smatz <smatz@openttd.org> | 2010-03-23 22:37:18 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-03-23 22:37:18 +0000 |
commit | 23041d97200f226bf427de8db7e78232c4ad68b1 (patch) | |
tree | 49b34a1bb1ac5705d5ef56d752654efd21193692 /src/misc/countedptr.hpp | |
parent | 837913aa5aac81d455beb1f0302b4b0abb805c1f (diff) | |
download | openttd-23041d97200f226bf427de8db7e78232c4ad68b1.tar.xz |
(svn r19509) -Codechange: remove superfluous semicolons after function definitions
Diffstat (limited to 'src/misc/countedptr.hpp')
-rw-r--r-- | src/misc/countedptr.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/misc/countedptr.hpp b/src/misc/countedptr.hpp index ed2afaf54..643c1b83b 100644 --- a/src/misc/countedptr.hpp +++ b/src/misc/countedptr.hpp @@ -34,13 +34,13 @@ protected: public: /** default (NULL) construct or construct from a raw pointer */ - FORCEINLINE CCountedPtr(Tcls *pObj = NULL) : m_pT(pObj) {AddRef();}; + FORCEINLINE CCountedPtr(Tcls *pObj = NULL) : m_pT(pObj) {AddRef();} /** copy constructor (invoked also when initializing from another smart ptr) */ - FORCEINLINE CCountedPtr(const CCountedPtr& src) : m_pT(src.m_pT) {AddRef();}; + FORCEINLINE CCountedPtr(const CCountedPtr& src) : m_pT(src.m_pT) {AddRef();} /** destructor releasing the reference */ - FORCEINLINE ~CCountedPtr() {Release();}; + FORCEINLINE ~CCountedPtr() {Release();} protected: /** add one ref to the underlaying object */ @@ -51,10 +51,10 @@ public: FORCEINLINE void Release() {if (m_pT != NULL) {Tcls *pT = m_pT; m_pT = NULL; pT->Release();}} /** dereference of smart pointer - const way */ - FORCEINLINE const Tcls *operator -> () const {assert(m_pT != NULL); return m_pT;}; + FORCEINLINE const Tcls *operator -> () const {assert(m_pT != NULL); return m_pT;} /** dereference of smart pointer - non const way */ - FORCEINLINE Tcls *operator -> () {assert(m_pT != NULL); return m_pT;}; + FORCEINLINE Tcls *operator -> () {assert(m_pT != NULL); return m_pT;} /** raw pointer casting operator - const way */ FORCEINLINE operator const Tcls*() const {assert(m_pT == NULL); return m_pT;} @@ -152,7 +152,7 @@ struct SimpleCountedObject { {} virtual ~SimpleCountedObject() - {}; + {} virtual int32 AddRef(); virtual int32 Release(); |