Use move assignment

This commit is contained in:
halx99 2020-10-07 23:59:26 +08:00
parent 0d84d722b8
commit 343b0343f3
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ struct CC_DLL ResourceData
ResourceData(int iType, std::string sFile, std::string sPlist) ResourceData(int iType, std::string sFile, std::string sPlist)
{ {
type = iType; type = iType;
file = sFile; file = std::move(sFile);
plist = sPlist; plist = std::move(sPlist);
} }
ResourceData& operator=(const ResourceData& rv) ResourceData& operator=(const ResourceData& rv)
{ {