Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/godot_cpp/core/class_db.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

#include <godot_cpp/templates/local_vector.hpp>

#include <godot_cpp/templates/hash_set.hpp>
#include <list>
#include <mutex>
#include <set>
#include <unordered_map>

// Needed to use StringName as key in `std::unordered_map`
Expand Down Expand Up @@ -96,10 +96,10 @@ class ClassDB {
StringName parent_name;
GDExtensionInitializationLevel level = GDEXTENSION_INITIALIZATION_SCENE;
std::unordered_map<StringName, MethodBind *> method_map;
std::set<StringName> signal_names;
HashSet<StringName> signal_names;
std::unordered_map<StringName, VirtualMethod> virtual_methods;
std::set<StringName> property_names;
std::set<StringName> constant_names;
HashSet<StringName> property_names;
HashSet<StringName> constant_names;
// Pointer to the parent custom class, if any. Will be null if the parent class is a Godot class.
ClassInfo *parent_ptr = nullptr;
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/class_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ void ClassDB::initialize(GDExtensionInitializationLevel p_level) {
}

void ClassDB::deinitialize(GDExtensionInitializationLevel p_level) {
std::set<StringName> to_erase;
HashSet<StringName> to_erase;
for (int i = class_register_order.size() - 1; i >= 0; --i) {
const StringName &name = class_register_order[i];
const ClassInfo &cl = classes[name];
Expand Down
Loading