diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-09-04 09:18:19 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-09-04 09:18:19 +0100 |
commit | ce263c4ff680f28594ffc1886a4f418c50c41ef7 (patch) | |
tree | 08a46d913d177d335fc639931994845fa97e7fcc /editor/editor_audio_buses.h | |
parent | 27763b67bb63139319bf611590c40e48663e72d6 (diff) | |
download | redot-engine-ce263c4ff680f28594ffc1886a4f418c50c41ef7.tar.gz |
Ensure assignment operators return by reference to avoid unnecessary copies.
Diffstat (limited to 'editor/editor_audio_buses.h')
-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; |