summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:33 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:33 +0100
commit6c390b620d231d5f2febf05bddd758582513fe46 (patch)
treee117eb6e32b69e0efb3938ec29819e6ccd9ddeae /editor/project_settings_editor.cpp
parentb66d16fcc9094735cec5259a9714b131fa410594 (diff)
parenta3cb1b096fcecad03562205bd285ebefc816c64a (diff)
downloadredot-engine-6c390b620d231d5f2febf05bddd758582513fe46.tar.gz
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
Add const references detected by clang-tidy
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index d587737ed4..3f93915fa3 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -173,7 +173,7 @@ void ProjectSettingsEditor::_feature_selected(int p_index) {
void ProjectSettingsEditor::_update_property_box() {
const String setting = _get_setting_name();
const Vector<String> 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());