From 75d5bcfb42a72a7ad661339ddab3efad6aa59fbc Mon Sep 17 00:00:00 2001 From: andyque Date: Thu, 2 Jan 2014 18:05:22 +0800 Subject: [PATCH] remove const modifier of move semantic --- cocos/base/CCVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/base/CCVector.h b/cocos/base/CCVector.h index bbf578930b..ebafd8b199 100644 --- a/cocos/base/CCVector.h +++ b/cocos/base/CCVector.h @@ -271,7 +271,7 @@ public: object->retain(); } - void pushBack(const T&& object) + void pushBack(T&& object) { CCASSERT(object != nullptr, "The object should not be nullptr"); _data.push_back( object );