X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fproperty-iterator.cc;h=6ea772222a0734a9a6941a1017d37dfbdbeac06e;hb=c5f4a0324c78423d91ccc2dd44823f692256d600;hp=61a1b933c334ccf03ccea27c1d21407413595912;hpb=69b9cead5afe7164b9053d26eba582fec3825ef8;p=lilypond.git diff --git a/lily/property-iterator.cc b/lily/property-iterator.cc index 61a1b933c3..6ea772222a 100644 --- a/lily/property-iterator.cc +++ b/lily/property-iterator.cc @@ -3,24 +3,23 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1998 Han-Wen Nienhuys */ #include "property-iterator.hh" #include "translation-property.hh" #include "translator-group.hh" -Property_iterator::Property_iterator (Translation_property *prop_l) -{ - property_l_ = prop_l; -} - +/** + There is no real processing to a property: just lookup the + translation unit, and set the property. + */ void -Property_iterator::process_and_next (Moment m) +Property_iterator::do_process_and_next (Moment m) { - if (property_l_->var_str_.length_i ()) - report_to_l ()->set_property (property_l_->var_str_, property_l_->value_); - Music_iterator::process_and_next (m); + Translation_property const * prop = dynamic_cast (music_l_); + if (prop->var_str_.length_i ()) + report_to_l ()->set_property (prop->var_str_, prop->value_); + Music_iterator::do_process_and_next (m); } -IMPLEMENT_IS_TYPE_B1(Property_iterator, Music_iterator);