You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add const references detected by clang-tidy
This commit is contained in:
@@ -171,7 +171,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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user