2
0
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:
Jack Andersen
2016-04-14 17:24:51 -10:00
parent 1404f84480
commit 037404c5ff
3 changed files with 8 additions and 9 deletions

View File

@@ -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;