mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 22:27:41 +00:00
Function-scope statics aren't as efficient as file-scope ones
This commit is contained in:
@@ -28,11 +28,9 @@ public:
|
||||
hecl::SystemString firstArg = info.args.front();
|
||||
hecl::ToLower(firstArg);
|
||||
|
||||
static const hecl::SystemString enable(_S("enable"));
|
||||
static const hecl::SystemString disable(_S("disable"));
|
||||
if (!firstArg.compare(enable))
|
||||
if (!firstArg.compare(_S("enable")))
|
||||
mode = MENABLE;
|
||||
else if (!firstArg.compare(disable))
|
||||
else if (!firstArg.compare(_S("disable")))
|
||||
mode = MDISABLE;
|
||||
else
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user