summaryrefslogtreecommitdiffstats
path: root/editor/editor_sectioned_inspector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_sectioned_inspector.cpp')
-rw-r--r--editor/editor_sectioned_inspector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index cc931ea4f7..0aa9ed7ac5 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -98,7 +98,7 @@ class SectionedInspectorFilter : public Object {
List<PropertyInfo> pinfo;
edited->get_property_list(&pinfo);
for (PropertyInfo &pi : pinfo) {
- int sp = pi.name.find("/");
+ int sp = pi.name.find_char('/');
if (pi.name == "resource_path" || pi.name == "resource_name" || pi.name == "resource_local_to_scene" || pi.name.begins_with("script/") || pi.name.begins_with("_global_script")) { //skip resource stuff
continue;
@@ -257,7 +257,7 @@ void SectionedInspector::update_category_list() {
continue;
}
- int sp = pi.name.find("/");
+ int sp = pi.name.find_char('/');
if (sp == -1) {
pi.name = "global/" + pi.name;
}