godot/modules/mono/mono_gd
Rémi Verschelde 7da392bcc5
Don't return reference on copy assignment operators
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this
can lead to confusing code and subtle bugs.

According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++
allows any arbitrary return type, so this is standard compliant.

This could be re-assessed if/when we have an actual need for a behavior more
akin to that of the C++ STL, for now this PR simply changes a handful of
cases which were inconsistent with the rest of the codebase (`void` return
type was already the most common case prior to this commit).
2021-11-30 16:26:29 +01:00
..
support
android_mono_config.h
gd_mono_assembly.cpp
gd_mono_assembly.h
gd_mono_cache.cpp [Net] Rename RPC constants and annotation arguments. 2021-10-01 18:14:38 +02:00
gd_mono_cache.h [Net] Rename RPC constants and annotation arguments. 2021-10-01 18:14:38 +02:00
gd_mono_class.cpp clang-format: Disable alignment of operands, too unreliable 2021-10-28 15:19:35 +02:00
gd_mono_class.h
gd_mono_field.cpp
gd_mono_field.h
gd_mono_header.h
gd_mono_internals.cpp Merge pull request #47295 from omegachysis/script-bind-mutex 2021-08-24 06:09:43 +02:00
gd_mono_internals.h
gd_mono_log.cpp Don't return reference on copy assignment operators 2021-11-30 16:26:29 +01:00
gd_mono_log.h
gd_mono_marshal.cpp clang-format: Enable BreakBeforeTernaryOperators 2021-10-28 15:57:41 +02:00
gd_mono_marshal.h clang-format: Disable alignment of operands, too unreliable 2021-10-28 15:19:35 +02:00
gd_mono_method_thunk.h
gd_mono_method.cpp
gd_mono_method.h
gd_mono_property.cpp C#: Fix property set call boxing value when unboxed was expected 2021-10-19 00:33:51 +02:00
gd_mono_property.h C#: Fix property set call boxing value when unboxed was expected 2021-10-19 00:33:51 +02:00
gd_mono_utils.cpp Mono: Fix build after #52940 2021-10-20 11:07:20 +02:00
gd_mono_utils.h
gd_mono_wasm_m2n.cpp
gd_mono_wasm_m2n.h clang-format: Disable alignment of operands, too unreliable 2021-10-28 15:19:35 +02:00
gd_mono.cpp Move Mono unhandled exception setting to be located within a subsection 2021-11-10 17:31:54 +01:00
gd_mono.h clang-format: Disable alignment of operands, too unreliable 2021-10-28 15:19:35 +02:00
i_mono_class_member.h
managed_type.cpp
managed_type.h