From a3cb1b096fcecad03562205bd285ebefc816c64a Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sat, 18 Nov 2023 17:40:56 -0500 Subject: Add const references detected by clang-tidy --- editor/project_settings_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/project_settings_editor.cpp') diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 09de9cda49..0bb724efe4 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -171,7 +171,7 @@ void ProjectSettingsEditor::_feature_selected(int p_index) { void ProjectSettingsEditor::_update_property_box() { const String setting = _get_setting_name(); const Vector t = setting.split(".", true, 1); - const String name = t[0]; + const String &name = t[0]; const String feature = (t.size() == 2) ? t[1] : ""; bool feature_invalid = (t.size() == 2) && (t[1].is_empty()); -- cgit v1.2.3