summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-10-10 22:56:35 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-10-10 22:57:46 +0200
commit8c79b4f5e911a4846c47dc6d05e24b9d89718361 (patch)
treea76ed0435578ac05f86af0edee04035aa7914133 /editor
parentf4afaecdd1220395acd5fe1e36368ba9bb146865 (diff)
Remove redundant `camelcase_to_underscore()` call in EditorInspector
Calling `String::capitalize()` already calls `String::camelcase_to_underscore()` under the hood.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index b29417b4c3..78e058eeaa 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -1566,11 +1566,11 @@ void EditorInspector::update_tree() {
if (dot != -1) {
String ov = name.right(dot);
name = name.substr(0, dot);
- name = name.camelcase_to_underscore().capitalize();
+ name = name.capitalize();
name += ov;
} else {
- name = name.camelcase_to_underscore().capitalize();
+ name = name.capitalize();
}
}