source file of the GNU LilyPond music typesetter
- (c) 2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2001--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
void
Percent_repeat_iterator::construct_children ()
{
- Repeated_music * mus =dynamic_cast<Repeated_music *> (music_l_);
+ Repeated_music * mus =dynamic_cast<Repeated_music *> (music_l ());
finish_mom_ = mus->length_mom ();
child_iter_p_ = get_iterator_p (mus->body ());
}
void
Percent_repeat_iterator::process (Moment m)
{
- if (!m)
+ if (!m.to_bool ())
{
- Music_iterator *yeah = try_music (music_l_);
+ Music_iterator *yeah = try_music (music_l ());
if (yeah)
set_translator (yeah->report_to_l ());
else
- music_l_->origin ()->warning ( _ ("no one to print a percent"));
+ music_l ()->origin ()->warning ( _ ("no one to print a percent"));
}
if (child_iter_p_->ok ())