mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +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). |
||
---|---|---|
.. | ||
api | ||
export | ||
app_delegate.h | ||
app_delegate.mm | ||
detect.py | ||
device_metrics.h | ||
device_metrics.m | ||
display_layer.h | ||
display_layer.mm | ||
display_server_iphone.h | ||
display_server_iphone.mm | ||
godot_app_delegate.h | ||
godot_app_delegate.m | ||
godot_iphone.mm | ||
godot_view_gesture_recognizer.h | ||
godot_view_gesture_recognizer.mm | ||
godot_view_renderer.h | ||
godot_view_renderer.mm | ||
godot_view.h | ||
godot_view.mm | ||
ios.h | ||
ios.mm | ||
joypad_iphone.h | ||
joypad_iphone.mm | ||
keyboard_input_view.h | ||
keyboard_input_view.mm | ||
logo.png | ||
main.m | ||
os_iphone.h | ||
os_iphone.mm | ||
platform_config.h | ||
SCsub | ||
view_controller.h | ||
view_controller.mm | ||
vulkan_context_iphone.h | ||
vulkan_context_iphone.mm |