diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-14 12:53:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-14 12:53:38 +0200 |
| commit | 5f5f53e8eba5c9b708714de58d3cca6ceb010279 (patch) | |
| tree | 8bebdce946466ce8e9476ccd46c9dba62c323938 /modules/mono/csharp_script.h | |
| parent | e7c9d818766a119089873e4941e4865fb36883ec (diff) | |
| parent | 1f6f364a56319eabd02c050746fe7df3f55ffee3 (diff) | |
| download | redot-engine-5f5f53e8eba5c9b708714de58d3cca6ceb010279.tar.gz | |
Merge pull request #38697 from akien-mga/member-init-c++11
Port member default initialization from constructor to declaration (C++11)
Diffstat (limited to 'modules/mono/csharp_script.h')
| -rw-r--r-- | modules/mono/csharp_script.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index c9ea482c36..280c981a47 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -326,17 +326,13 @@ public: }; struct CSharpScriptBinding { - bool inited; + bool inited = false; StringName type_name; - GDMonoClass *wrapper_class; + GDMonoClass *wrapper_class = nullptr; MonoGCHandleData gchandle; - Object *owner; + Object *owner = nullptr; - CSharpScriptBinding() : - inited(false), - wrapper_class(nullptr), - owner(nullptr) { - } + CSharpScriptBinding() {} }; class ManagedCallableMiddleman : public Object { |
