mirror of https://github.com/axmolengine/axmol.git
Use move assignment
This commit is contained in:
parent
0d84d722b8
commit
343b0343f3
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue