mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 05:12:44 +00:00
Merge pull request #29808 from akien-mga/fix-Wduplicated-branches
Mono: Fix -Wduplicated-branches warning
This commit is contained in:
commit
ee58126cd8
@ -2536,13 +2536,8 @@ void BindingsGenerator::_default_argument_from_variant(const Variant &p_val, Arg
|
|||||||
|
|
||||||
switch (p_val.get_type()) {
|
switch (p_val.get_type()) {
|
||||||
case Variant::NIL:
|
case Variant::NIL:
|
||||||
if (ClassDB::class_exists(r_iarg.type.cname)) {
|
// Either Object type or Variant
|
||||||
// Object type
|
r_iarg.default_argument = "null";
|
||||||
r_iarg.default_argument = "null";
|
|
||||||
} else {
|
|
||||||
// Variant
|
|
||||||
r_iarg.default_argument = "null";
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
// Atomic types
|
// Atomic types
|
||||||
case Variant::BOOL:
|
case Variant::BOOL:
|
||||||
|
Loading…
Reference in New Issue
Block a user