mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 10:34:01 +00:00
Cache JS component wrappers
This commit is contained in:
committed by
wraitii
parent
0a4bfefb1e
commit
ea5a350f83
@@ -24,7 +24,7 @@
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
#include "scriptinterface/ScriptTypes.h"
|
||||
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
|
||||
ERROR_GROUP(Scripting);
|
||||
ERROR_TYPE(Scripting, SetupFailed);
|
||||
@@ -289,7 +289,7 @@ private:
|
||||
// members have to be called before the custom destructor of ScriptInterface_impl.
|
||||
std::unique_ptr<ScriptInterface_impl> m;
|
||||
|
||||
std::map<std::string, CustomType> m_CustomObjectTypes;
|
||||
std::unordered_map<std::string, CustomType> m_CustomObjectTypes;
|
||||
};
|
||||
|
||||
// Explicitly instantiate void* as that is used for the generic template,
|
||||
|
||||
Reference in New Issue
Block a user