mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
7da392bcc5
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). |
||
---|---|---|
.. | ||
support | ||
android_mono_config.h | ||
gd_mono_assembly.cpp | ||
gd_mono_assembly.h | ||
gd_mono_cache.cpp | ||
gd_mono_cache.h | ||
gd_mono_class.cpp | ||
gd_mono_class.h | ||
gd_mono_field.cpp | ||
gd_mono_field.h | ||
gd_mono_header.h | ||
gd_mono_internals.cpp | ||
gd_mono_internals.h | ||
gd_mono_log.cpp | ||
gd_mono_log.h | ||
gd_mono_marshal.cpp | ||
gd_mono_marshal.h | ||
gd_mono_method_thunk.h | ||
gd_mono_method.cpp | ||
gd_mono_method.h | ||
gd_mono_property.cpp | ||
gd_mono_property.h | ||
gd_mono_utils.cpp | ||
gd_mono_utils.h | ||
gd_mono_wasm_m2n.cpp | ||
gd_mono_wasm_m2n.h | ||
gd_mono.cpp | ||
gd_mono.h | ||
i_mono_class_member.h | ||
managed_type.cpp | ||
managed_type.h |