From 343b0343f32076d57d5eeb0d704196da8df768ba Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 7 Oct 2020 23:59:26 +0800 Subject: [PATCH] Use move assignment --- cocos/ui/GUIDefine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {