Fixes wrong indention and whitespace cleanup

This commit is contained in:
James Chen 2014-05-14 10:25:45 +08:00
parent ba3f5f8eee
commit c14482254d
2 changed files with 24 additions and 24 deletions

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
NS_CC_BEGIN
#ifdef CC_USE_MEM_LEAK_DETECTION
#if CC_USE_MEM_LEAK_DETECTION
void trackRef(Ref* ref);
void untrackRef(Ref* ref);
#endif
@ -65,7 +65,7 @@ Ref::~Ref()
#endif
#ifdef CC_USE_MEM_LEAK_DETECTION
#if CC_USE_MEM_LEAK_DETECTION
if (_referenceCount != 0)
untrackRef(this);
#endif
@ -119,7 +119,7 @@ void Ref::release()
}
#endif
#ifdef CC_USE_MEM_LEAK_DETECTION
#if CC_USE_MEM_LEAK_DETECTION
untrackRef(this);
#endif
delete this;
@ -137,7 +137,7 @@ unsigned int Ref::getReferenceCount() const
return _referenceCount;
}
#ifdef CC_USE_MEM_LEAK_DETECTION
#if CC_USE_MEM_LEAK_DETECTION
static std::list<Ref*> __refAllocationList;

View File

@ -44,16 +44,16 @@ class Ref;
class CC_DLL Clonable
{
public:
/** returns a copy of the Ref */
/** returns a copy of the Ref */
virtual Clonable* clone() const = 0;
/**
* @js NA
* @lua NA
*/
virtual ~Clonable() {};
virtual ~Clonable() {};
/** returns a copy of the Ref.
@deprecated Use clone() instead
* @deprecated Use clone() instead
*/
CC_DEPRECATED_ATTRIBUTE Ref* copy() const
{
@ -77,7 +77,7 @@ public:
void retain();
/**
* Release the ownership immediately.
* Releases the ownership immediately.
*
* This decrements the Ref's reference count.
*
@ -90,7 +90,7 @@ public:
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
* autorelease pool block.
@ -144,8 +144,8 @@ public:
int _luaID;
#endif
// Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined)
#ifdef CC_USE_MEM_LEAK_DETECTION
// Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined and its value isn't zero)
#if CC_USE_MEM_LEAK_DETECTION
public:
static void printLeaks();
#endif