File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44
44
// Needs to come after method_bind and object have been included.
45
45
#include < godot_cpp/variant/callable_method_pointer.hpp>
46
46
47
+ #include < godot_cpp/templates/hash_set.hpp>
47
48
#include < list>
48
49
#include < mutex>
49
- #include < set>
50
50
#include < string>
51
51
#include < unordered_map>
52
52
#include < vector>
@@ -96,10 +96,10 @@ class ClassDB {
96
96
StringName parent_name;
97
97
GDExtensionInitializationLevel level = GDEXTENSION_INITIALIZATION_SCENE;
98
98
std::unordered_map<StringName, MethodBind *> method_map;
99
- std::set <StringName> signal_names;
99
+ HashSet <StringName> signal_names;
100
100
std::unordered_map<StringName, VirtualMethod> virtual_methods;
101
- std::set <StringName> property_names;
102
- std::set <StringName> constant_names;
101
+ HashSet <StringName> property_names;
102
+ HashSet <StringName> constant_names;
103
103
// Pointer to the parent custom class, if any. Will be null if the parent class is a Godot class.
104
104
ClassInfo *parent_ptr = nullptr ;
105
105
};
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ void ClassDB::initialize(GDExtensionInitializationLevel p_level) {
412
412
}
413
413
414
414
void ClassDB::deinitialize (GDExtensionInitializationLevel p_level) {
415
- std::set <StringName> to_erase;
415
+ HashSet <StringName> to_erase;
416
416
for (std::vector<StringName>::reverse_iterator i = class_register_order.rbegin (); i != class_register_order.rend (); ++i) {
417
417
const StringName &name = *i;
418
418
const ClassInfo &cl = classes[name];
You can’t perform that action at this time.
0 commit comments