summaryrefslogtreecommitdiffstats
path: root/editor/editor_sectioned_inspector.cpp
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2020-11-24 10:12:55 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2020-12-02 16:09:11 +0100
commite1811b689b6854668ca690831df8603820b68573 (patch)
treeb13641bf9a704ec71f8ac90f3dd8d41a1174ae04 /editor/editor_sectioned_inspector.cpp
parentd1231be1c8f8f2c16fd1047adcd3c7f997a07c1f (diff)
downloadredot-engine-e1811b689b6854668ca690831df8603820b68573.tar.gz
Initialize class/struct variables with default values in platform/ and editor/
Diffstat (limited to 'editor/editor_sectioned_inspector.cpp')
-rw-r--r--editor/editor_sectioned_inspector.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index cf19b54cff..bc9ca15467 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -35,9 +35,9 @@
class SectionedInspectorFilter : public Object {
GDCLASS(SectionedInspectorFilter, Object);
- Object *edited;
+ Object *edited = nullptr;
String section;
- bool allow_sub;
+ bool allow_sub = false;
bool _set(const StringName &p_name, const Variant &p_value) {
if (!edited) {
@@ -123,10 +123,6 @@ public:
edited = p_edited;
_change_notify();
}
-
- SectionedInspectorFilter() {
- edited = nullptr;
- }
};
void SectionedInspector::_bind_methods() {