From c50f0610edaefaadfdffaf2dea07b2fb3af77918 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sun, 13 Jan 2013 17:13:58 +0000 Subject: [PATCH] use Audio_note::get_column() rather than directly accessing the member field This adheres to the principle of encapsulation. --- lily/midi-walker.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lily/midi-walker.cc b/lily/midi-walker.cc index 6d0b1290a3..b97630b0d1 100644 --- a/lily/midi-walker.cc +++ b/lily/midi-walker.cc @@ -178,7 +178,8 @@ void Midi_walker::process () { Audio_item *audio = items_[index_]; - do_stop_notes (audio->audio_column_->ticks ()); + Audio_column *col = audio->get_column (); + do_stop_notes (col->ticks ()); if (Midi_item *midi = get_midi (audio)) { -- 2.39.5