diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-04 13:00:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 13:00:17 +0200 |
commit | 696849f73a9bebc95cecf25256ae7011c912dae3 (patch) | |
tree | 6bd8d8cb872a4600804c31ec281f734cd5f46a77 /editor | |
parent | 6a03aed5a4c6dcc2b645b90ce15ba33bf17819d2 (diff) | |
parent | ce263c4ff680f28594ffc1886a4f418c50c41ef7 (diff) |
Merge pull request #41761 from madmiraal/fix-assignment-operators
Ensure assignment operators return by reference to avoid unnecessary copies.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_audio_buses.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_audio_buses.h b/editor/editor_audio_buses.h index 87c060d1f5..b6cf1183b5 100644 --- a/editor/editor_audio_buses.h +++ b/editor/editor_audio_buses.h @@ -230,7 +230,7 @@ private: render_db_value = n.render_db_value; } - _FORCE_INLINE_ AudioNotch operator=(const EditorAudioMeterNotches::AudioNotch &n) { + _FORCE_INLINE_ AudioNotch &operator=(const EditorAudioMeterNotches::AudioNotch &n) { relative_position = n.relative_position; db_value = n.db_value; render_db_value = n.render_db_value; |