summaryrefslogtreecommitdiffstats
path: root/editor/editor_help_search.h
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_help_search.h
parentd1231be1c8f8f2c16fd1047adcd3c7f997a07c1f (diff)
downloadredot-engine-e1811b689b6854668ca690831df8603820b68573.tar.gz
Initialize class/struct variables with default values in platform/ and editor/
Diffstat (limited to 'editor/editor_help_search.h')
-rw-r--r--editor/editor_help_search.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/editor_help_search.h b/editor/editor_help_search.h
index f1aab6cc81..cb52c515de 100644
--- a/editor/editor_help_search.h
+++ b/editor/editor_help_search.h
@@ -98,7 +98,7 @@ class EditorHelpSearch::Runner : public Reference {
struct ClassMatch {
DocData::ClassDoc *doc;
- bool name;
+ bool name = false;
Vector<DocData::MethodDoc *> methods;
Vector<DocData::MethodDoc *> signals;
Vector<DocData::ConstantDoc *> constants;
@@ -118,12 +118,12 @@ class EditorHelpSearch::Runner : public Reference {
Ref<Texture2D> empty_icon;
Color disabled_color;
- Map<String, DocData::ClassDoc>::Element *iterator_doc;
+ Map<String, DocData::ClassDoc>::Element *iterator_doc = nullptr;
Map<String, ClassMatch> matches;
- Map<String, ClassMatch>::Element *iterator_match;
- TreeItem *root_item;
+ Map<String, ClassMatch>::Element *iterator_match = nullptr;
+ TreeItem *root_item = nullptr;
Map<String, TreeItem *> class_items;
- TreeItem *matched_item;
+ TreeItem *matched_item = nullptr;
bool _is_class_disabled_by_feature_profile(const StringName &p_class);