diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 3e4b8595a..f1244dc88 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -3814,7 +3814,7 @@ int PianoRoll::quantization() const void PianoRoll::updateSemiToneMarkerMenu() { - auto chord_table = InstrumentFunctionNoteStacking::ChordTable::getInstance(); + const auto& chord_table = InstrumentFunctionNoteStacking::ChordTable::getInstance(); const InstrumentFunctionNoteStacking::Chord& scale = chord_table.getScaleByName( m_scaleModel.currentText() ); const InstrumentFunctionNoteStacking::Chord& chord =