diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2020-07-05 19:19:36 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2020-07-05 19:19:36 +0200 |
| commit | 2511c439727226f64def8b15b38d084db187cf55 (patch) | |
| tree | f56b1716af16025a32795691161b75c8a0362fb9 /modules/mono/managed_callable.cpp | |
| parent | 772f693e5b8b5912d422e8effb8d6a72260edcfc (diff) | |
| download | redot-engine-2511c439727226f64def8b15b38d084db187cf55.tar.gz | |
Mono/C#: Fix several clang-tidy warnings and cleanup
Diffstat (limited to 'modules/mono/managed_callable.cpp')
| -rw-r--r-- | modules/mono/managed_callable.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mono/managed_callable.cpp b/modules/mono/managed_callable.cpp index 26347e9162..dbe9c7fc5d 100644 --- a/modules/mono/managed_callable.cpp +++ b/modules/mono/managed_callable.cpp @@ -48,8 +48,9 @@ bool ManagedCallable::compare_equal(const CallableCustom *p_a, const CallableCus MonoDelegate *delegate_b = (MonoDelegate *)b->delegate_handle.get_target(); if (!delegate_a || !delegate_b) { - if (!delegate_a && !delegate_b) + if (!delegate_a && !delegate_b) { return true; + } return false; } @@ -58,8 +59,9 @@ bool ManagedCallable::compare_equal(const CallableCustom *p_a, const CallableCus } bool ManagedCallable::compare_less(const CallableCustom *p_a, const CallableCustom *p_b) { - if (compare_equal(p_a, p_b)) + if (compare_equal(p_a, p_b)) { return false; + } return p_a < p_b; } |
