You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add some code changes/fixes proposed by Coverity and Clang Tidy
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user