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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index 751cc7a574..c7a9171709 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -45,7 +45,7 @@ class SectionedInspectorFilter : public Object {
}
String name = p_name;
- if (section != "") {
+ if (!section.is_empty()) {
name = section + "/" + name;
}
@@ -60,7 +60,7 @@ class SectionedInspectorFilter : public Object {
}
String name = p_name;
- if (section != "") {
+ if (!section.is_empty()) {
name = section + "/" + name;
}
@@ -155,7 +155,7 @@ String SectionedInspector::get_current_section() const {
String SectionedInspector::get_full_item_path(const String &p_item) {
String base = get_current_section();
- if (base != "") {
+ if (!base.is_empty()) {
return base + "/" + p_item;
} else {
return p_item;