Optimize parameter passing to avoid unnecessary copying
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
||||
static std::string getDefaultGeneratorID();
|
||||
|
||||
static std::unique_ptr<WorldGenerator> createGenerator(
|
||||
std::string id, const Content* content
|
||||
const std::string &id, const Content *content
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user