diff --git a/cocos/ui/GUIDefine.h b/cocos/ui/GUIDefine.h index 6b8729dced..473638d08b 100644 --- a/cocos/ui/GUIDefine.h +++ b/cocos/ui/GUIDefine.h @@ -103,8 +103,8 @@ struct CC_DLL ResourceData ResourceData(int iType, std::string sFile, std::string sPlist) { type = iType; - file = sFile; - plist = sPlist; + file = std::move(sFile); + plist = std::move(sPlist); } ResourceData& operator=(const ResourceData& rv) {