Changeset - r7297:533603b95ed7
[Not reviewed]
master
0 1 0
KUDr - 17 years ago 2007-07-21 12:39:46
kudr@openttd.org
(svn r10645) -Fix (r10644): file contents seems to be 3x there
1 file changed with 0 insertions and 45 deletions:
0 comments (0 inline, 0 general)
src/misc/countedobj.cpp
Show inline comments
 
@@ -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;
 
}
 

	
0 comments (0 inline, 0 general)