Ensure assignment operators return by reference to avoid unnecessary copies.

This commit is contained in:
Marcel Admiraal
2020-09-04 09:18:19 +01:00
parent 27763b67bb
commit ce263c4ff6
8 changed files with 10 additions and 10 deletions

View File

@@ -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;