mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +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). |
||
---|---|---|
.. | ||
bin_sorted_array.h | ||
command_queue_mt.cpp | ||
command_queue_mt.h | ||
cowdata.h | ||
hash_map.h | ||
hashfuncs.h | ||
list.h | ||
local_vector.h | ||
lru.h | ||
map.h | ||
oa_hash_map.h | ||
ordered_hash_map.h | ||
paged_allocator.h | ||
paged_array.h | ||
pair.h | ||
pass_func.h | ||
pooled_list.h | ||
rid_owner.cpp | ||
rid_owner.h | ||
rid.h | ||
ring_buffer.h | ||
safe_list.h | ||
safe_refcount.h | ||
SCsub | ||
search_array.h | ||
self_list.h | ||
set.h | ||
simple_type.h | ||
sort_array.h | ||
thread_work_pool.cpp | ||
thread_work_pool.h | ||
vector.h | ||
vmap.h | ||
vset.h |