Remove redundant camelcase_to_underscore()
call in EditorInspector
Calling `String::capitalize()` already calls `String::camelcase_to_underscore()` under the hood.
This commit is contained in:
parent
f4afaecdd1
commit
8c79b4f5e9
@ -1566,11 +1566,11 @@ void EditorInspector::update_tree() {
|
|||||||
if (dot != -1) {
|
if (dot != -1) {
|
||||||
String ov = name.right(dot);
|
String ov = name.right(dot);
|
||||||
name = name.substr(0, dot);
|
name = name.substr(0, dot);
|
||||||
name = name.camelcase_to_underscore().capitalize();
|
name = name.capitalize();
|
||||||
name += ov;
|
name += ov;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
name = name.camelcase_to_underscore().capitalize();
|
name = name.capitalize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user