mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Ensure assignment operators return by reference to avoid unnecessary copies.
This commit is contained in:
@@ -121,7 +121,7 @@ struct AudioFrame {
|
||||
r = p_frame.r;
|
||||
}
|
||||
|
||||
_ALWAYS_INLINE_ AudioFrame operator=(const AudioFrame &p_frame) {
|
||||
_ALWAYS_INLINE_ AudioFrame &operator=(const AudioFrame &p_frame) {
|
||||
l = p_frame.l;
|
||||
r = p_frame.r;
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user