remove move semantic into another pr

This commit is contained in:
andyque 2014-01-02 18:32:47 +08:00
parent 8a7228049a
commit 961b27eacb
1 changed files with 1 additions and 8 deletions

View File

@ -264,14 +264,7 @@ public:
* which causes an automatic reallocation of the allocated storage space
* if -and only if- the new vector size surpasses the current vector capacity.
*/
void pushBack(const T& object)
{
CCASSERT(object != nullptr, "The object should not be nullptr");
_data.push_back( object );
object->retain();
}
void pushBack(const T&& object)
void pushBack(T object)
{
CCASSERT(object != nullptr, "The object should not be nullptr");
_data.push_back( object );