mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 20:51:14 +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
|
|
@ -189,7 +189,7 @@ void EditorPropertyAnchorsPreset::setup(const Vector<String> &p_options) {
|
|||
Vector<String> text_split = p_options[i].split(":");
|
||||
int64_t current_val = text_split[1].to_int();
|
||||
|
||||
String option_name = text_split[0];
|
||||
const String &option_name = text_split[0];
|
||||
if (option_name.begins_with("Preset")) {
|
||||
String preset_name = option_name.trim_prefix("Preset");
|
||||
String humanized_name = preset_name.capitalize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue