mirror of https://github.com/axmolengine/axmol.git
Fixes wrong indention and whitespace cleanup
This commit is contained in:
parent
ba3f5f8eee
commit
c14482254d
|
@ -30,7 +30,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
#ifdef CC_USE_MEM_LEAK_DETECTION
|
#if CC_USE_MEM_LEAK_DETECTION
|
||||||
void trackRef(Ref* ref);
|
void trackRef(Ref* ref);
|
||||||
void untrackRef(Ref* ref);
|
void untrackRef(Ref* ref);
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,7 +65,7 @@ Ref::~Ref()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef CC_USE_MEM_LEAK_DETECTION
|
#if CC_USE_MEM_LEAK_DETECTION
|
||||||
if (_referenceCount != 0)
|
if (_referenceCount != 0)
|
||||||
untrackRef(this);
|
untrackRef(this);
|
||||||
#endif
|
#endif
|
||||||
|
@ -119,7 +119,7 @@ void Ref::release()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CC_USE_MEM_LEAK_DETECTION
|
#if CC_USE_MEM_LEAK_DETECTION
|
||||||
untrackRef(this);
|
untrackRef(this);
|
||||||
#endif
|
#endif
|
||||||
delete this;
|
delete this;
|
||||||
|
@ -137,7 +137,7 @@ unsigned int Ref::getReferenceCount() const
|
||||||
return _referenceCount;
|
return _referenceCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CC_USE_MEM_LEAK_DETECTION
|
#if CC_USE_MEM_LEAK_DETECTION
|
||||||
|
|
||||||
static std::list<Ref*> __refAllocationList;
|
static std::list<Ref*> __refAllocationList;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
virtual ~Clonable() {};
|
virtual ~Clonable() {};
|
||||||
|
|
||||||
/** returns a copy of the Ref.
|
/** returns a copy of the Ref.
|
||||||
@deprecated Use clone() instead
|
* @deprecated Use clone() instead
|
||||||
*/
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE Ref* copy() const
|
CC_DEPRECATED_ATTRIBUTE Ref* copy() const
|
||||||
{
|
{
|
||||||
|
@ -77,7 +77,7 @@ public:
|
||||||
void retain();
|
void retain();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release the ownership immediately.
|
* Releases the ownership immediately.
|
||||||
*
|
*
|
||||||
* This decrements the Ref's reference count.
|
* This decrements the Ref's reference count.
|
||||||
*
|
*
|
||||||
|
@ -90,7 +90,7 @@ public:
|
||||||
void release();
|
void release();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release the ownership sometime soon automatically.
|
* Releases the ownership sometime soon automatically.
|
||||||
*
|
*
|
||||||
* This descrements the Ref's reference count at the end of current
|
* This descrements the Ref's reference count at the end of current
|
||||||
* autorelease pool block.
|
* autorelease pool block.
|
||||||
|
@ -144,8 +144,8 @@ public:
|
||||||
int _luaID;
|
int _luaID;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined)
|
// Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined and its value isn't zero)
|
||||||
#ifdef CC_USE_MEM_LEAK_DETECTION
|
#if CC_USE_MEM_LEAK_DETECTION
|
||||||
public:
|
public:
|
||||||
static void printLeaks();
|
static void printLeaks();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue