From: Adam Spiers Date: Sun, 13 Jan 2013 17:13:58 +0000 (+0000) Subject: use Audio_note::get_column() rather than directly accessing the member field X-Git-Tag: release/2.17.12-1~20^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c50f0610edaefaadfdffaf2dea07b2fb3af77918;p=lilypond.git use Audio_note::get_column() rather than directly accessing the member field This adheres to the principle of encapsulation. --- 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)) {