Optimize parameter passing to avoid unnecessary copying
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
bool emissive = false;
|
||||
} rt;
|
||||
|
||||
ItemDef(std::string name);
|
||||
ItemDef(const std::string& name);
|
||||
ItemDef(const ItemDef&) = delete;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user