mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Optimize SAO getStaticData by using std::string pointer instead of return copy
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
This commit is contained in:
@@ -119,10 +119,10 @@ public:
|
||||
when it is created (converted from static to active - actually
|
||||
the data is the static form)
|
||||
*/
|
||||
virtual std::string getStaticData()
|
||||
virtual void getStaticData(std::string *result)
|
||||
{
|
||||
assert(isStaticAllowed());
|
||||
return "";
|
||||
*result = "";
|
||||
}
|
||||
/*
|
||||
Return false in here to never save and instead remove object
|
||||
|
Reference in New Issue
Block a user