godot/platform/iphone
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
..
api
export Don't return reference on copy assignment operators 2021-11-30 16:26:29 +01:00
SCsub
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.h
godot_view.mm
godot_view_gesture_recognizer.h
godot_view_gesture_recognizer.mm
godot_view_renderer.h
godot_view_renderer.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
view_controller.h
view_controller.mm
vulkan_context_iphone.h
vulkan_context_iphone.mm