godot/scene
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
..
2d Merge pull request #55417 from ekumlin/issue-54856 2021-11-29 14:46:01 +01:00
3d Don't return reference on copy assignment operators 2021-11-30 16:26:29 +01:00
animation Fixed PlaybackData in AnimationPlayer 2021-11-27 07:53:48 +09:00
audio Rename remove() to remove_at() when removing by index 2021-11-23 18:58:57 -07:00
debugger Merge pull request #48717 from Faless/debugger/4.x_custom_res_fix 2021-11-29 13:13:13 +01:00
gui Don't return reference on copy assignment operators 2021-11-30 16:26:29 +01:00
main Don't show tooltips for paused controls 2021-11-29 13:23:28 +01:00
resources Rename remove() to remove_at() when removing by index 2021-11-23 18:58:57 -07:00
property_utils.cpp
property_utils.h
register_scene_types.cpp
register_scene_types.h
scene_string_names.cpp
scene_string_names.h
SCsub