Mercurial > hg > openttd
changeset 7297:2d5412e07b5e draft
(svn r10645) -Fix (r10644): file contents seems to be 3x there
author | KUDr <KUDr@openttd.org> |
---|---|
date | Sat, 21 Jul 2007 12:39:46 +0000 |
parents | 75a41d83dd01 |
children | b30b64f784db |
files | src/misc/countedobj.cpp |
diffstat | 1 files changed, 0 insertions(+), 45 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc/countedobj.cpp +++ b/src/misc/countedobj.cpp @@ -19,48 +19,3 @@ } return res; } - -/* $Id$ */ - -#include "../stdafx.h" - -#include "countedptr.hpp" - -int32 SimpleCountedObject::AddRef() -{ - return ++m_ref_cnt; -} - -int32 SimpleCountedObject::Release() -{ - int32 res = --m_ref_cnt; - assert(res >= 0); - if (res == 0) { - FinalRelease(); - delete this; - } - return res; -} - -/* $Id$ */ - -#include "../stdafx.h" - -#include "countedptr.hpp" - -int32 SimpleCountedObject::AddRef() -{ - return ++m_ref_cnt; -} - -int32 SimpleCountedObject::Release() -{ - int32 res = --m_ref_cnt; - assert(res >= 0); - if (res == 0) { - FinalRelease(); - delete this; - } - return res; -} -