diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-08-07 12:54:30 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-08-07 12:54:30 +0200 |
commit | e0b5b218638df5b7b2998233182a7d8a1118e717 (patch) | |
tree | 0de2f04fbb41472d3bd9b43141f26193cb062be9 /modules/mono/csharp_script.cpp | |
parent | 045ab51ae50139e645958149c6d6d354026ccdd4 (diff) | |
download | redot-engine-e0b5b218638df5b7b2998233182a7d8a1118e717.tar.gz |
Add some code changes/fixes proposed by Coverity and Clang Tidy
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r-- | modules/mono/csharp_script.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 846c84d222..f8d201b4ca 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -2913,11 +2913,10 @@ Variant CSharpScript::_new(const Variant **p_args, int p_argcount, Variant::Call r_error.error = Variant::CallError::CALL_OK; REF ref; - Object *owner = NULL; ERR_FAIL_NULL_V(native, Variant()); - owner = ClassDB::instance(NATIVE_GDMONOCLASS_NAME(native)); + Object *owner = ClassDB::instance(NATIVE_GDMONOCLASS_NAME(native)); Reference *r = Object::cast_to<Reference>(owner); if (r) { |