mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 02:43:29 +00:00
Add const references detected by clang-tidy
This commit is contained in:
parent
2d0ee20ff3
commit
a3cb1b096f
57 changed files with 120 additions and 120 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue