1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy

Add const references detected by clang-tidy
This commit is contained in:
Rémi Verschelde
2024-01-04 14:25:33 +01:00
57 changed files with 119 additions and 119 deletions

View File

@@ -2963,7 +2963,7 @@ bool ScriptEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_data
}
for (int i = 0; i < files.size(); i++) {
String file = files[i];
const String &file = files[i];
if (file.is_empty() || !FileAccess::exists(file)) {
continue;
}
@@ -3043,7 +3043,7 @@ void ScriptEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Co
}
int num_tabs_before = tab_container->get_tab_count();
for (int i = 0; i < files.size(); i++) {
String file = files[i];
const String &file = files[i];
if (file.is_empty() || !FileAccess::exists(file)) {
continue;
}