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)
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue