You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "core/math/vector2.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/templates/map.h"
|
||||
#include "core/templates/rb_map.h"
|
||||
#include "core/templates/rid_owner.h"
|
||||
#include "core/templates/vector.h"
|
||||
#include "servers/xr/xr_pose.h"
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
uint32_t num_supported_extensions = 0;
|
||||
XrExtensionProperties *supported_extensions = nullptr;
|
||||
Vector<OpenXRExtensionWrapper *> registered_extension_wrappers;
|
||||
Vector<const char *> enabled_extensions;
|
||||
Vector<CharString> enabled_extensions;
|
||||
|
||||
bool ext_hp_mixed_reality_available = false;
|
||||
bool ext_samsung_odyssey_available = false;
|
||||
@@ -132,7 +132,7 @@ private:
|
||||
|
||||
bool load_layer_properties();
|
||||
bool load_supported_extensions();
|
||||
bool is_extension_supported(const char *p_extension) const;
|
||||
bool is_extension_supported(const String &p_extension) const;
|
||||
|
||||
// instance
|
||||
bool create_instance();
|
||||
|
||||
Reference in New Issue
Block a user