You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
@@ -1715,7 +1715,7 @@ void ScriptEditor::notify_script_changed(const Ref<Script> &p_script) {
|
||||
}
|
||||
|
||||
void ScriptEditor::get_breakpoints(List<String> *p_breakpoints) {
|
||||
RBSet<String> loaded_scripts;
|
||||
HashSet<String> loaded_scripts;
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
|
||||
if (!se) {
|
||||
@@ -1800,7 +1800,7 @@ void ScriptEditor::ensure_select_current() {
|
||||
_update_selected_editor_menu();
|
||||
}
|
||||
|
||||
void ScriptEditor::_find_scripts(Node *p_base, Node *p_current, RBSet<Ref<Script>> &used) {
|
||||
void ScriptEditor::_find_scripts(Node *p_base, Node *p_current, HashSet<Ref<Script>> &used) {
|
||||
if (p_current != p_base && p_current->get_owner() != p_base) {
|
||||
return;
|
||||
}
|
||||
@@ -1980,7 +1980,7 @@ void ScriptEditor::_update_script_names() {
|
||||
return;
|
||||
}
|
||||
|
||||
RBSet<Ref<Script>> used;
|
||||
HashSet<Ref<Script>> used;
|
||||
Node *edited = EditorNode::get_singleton()->get_edited_scene();
|
||||
if (edited) {
|
||||
_find_scripts(edited, edited, used);
|
||||
@@ -3143,7 +3143,7 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
|
||||
|
||||
restoring_layout = true;
|
||||
|
||||
RBSet<String> loaded_scripts;
|
||||
HashSet<String> loaded_scripts;
|
||||
List<String> extensions;
|
||||
ResourceLoader::get_recognized_extensions_for_type("Script", &extensions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user