From 1e3ee0856172ca026a8bdb0ab04c797701554f7f Mon Sep 17 00:00:00 2001 From: David Date: Tue, 20 Jan 2015 07:32:18 +0000 Subject: [PATCH] Update CCRef.cpp Updated the comment explaining the Ref::retain and Ref::release functions for readability. --- cocos/base/CCRef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/base/CCRef.cpp b/cocos/base/CCRef.cpp index 91e30935e9..696584dac2 100644 --- a/cocos/base/CCRef.cpp +++ b/cocos/base/CCRef.cpp @@ -81,13 +81,13 @@ Ref::~Ref() void Ref::retain() { - CCASSERT(_referenceCount > 0, "reference count should greater than 0"); + CCASSERT(_referenceCount > 0, "reference count should be greater than 0"); ++_referenceCount; } void Ref::release() { - CCASSERT(_referenceCount > 0, "reference count should greater than 0"); + CCASSERT(_referenceCount > 0, "reference count should be greater than 0"); --_referenceCount; if (_referenceCount == 0)