mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10645) -Fix (r10644): file contents seems to be 3x there
This commit is contained in:
parent
5083f22d1d
commit
af39f3a084
|
@ -19,48 +19,3 @@ int32 SimpleCountedObject::Release()
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue