From: fred Date: Tue, 26 Mar 2002 21:28:23 +0000 (+0000) Subject: lilypond-1.1.0 X-Git-Tag: release/1.5.59~2813 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4e87584b4fc6a2d174cc39fb45090e5409bb07dc;p=lilypond.git lilypond-1.1.0 --- diff --git a/TODO b/TODO index 6c18aa1a12..e22c3f60e8 100644 --- a/TODO +++ b/TODO @@ -10,14 +10,11 @@ grep for TODO and ugh/ugr/urg BUGS: - * document new TeX/mf layout - - * egcs-1.1 -O2 -finline-functions causes crash + + * add new glyphs to font.ly * formatting of input stuff. - * use real RTTI iso access_Stuff. - * \notes{ a \< b \cr } vs \notes{ a \< b \! } * if possible, it might be nice for a warning to appear if someone does diff --git a/lily/item.cc b/lily/item.cc index 78db9884e9..e48d576cfd 100644 --- a/lily/item.cc +++ b/lily/item.cc @@ -48,8 +48,8 @@ Item::line_l() const if (!ga) return 0; - assert (ga->access_Score_element()); - return ga->access_Score_element ()-> line_l (); + assert (dynamic_cast (ga)); + return dynamic_cast (ga)-> line_l (); } Direction @@ -67,7 +67,7 @@ Item::copy_breakable_items() Direction i=LEFT; do { - Item * item_p = clone()->access_Item (); + Item * item_p = dynamic_cast(clone()); item_p->break_status_dir_ = i; pscore_l_->typeset_element (item_p); @@ -130,9 +130,9 @@ int Item::left_right_compare(Item const *l, Item const *r) { while (!l->is_type_b (Paper_column::static_name ())) - l = l->axis_group_l_a_[X_AXIS]->access_Score_element ()->access_Item (); + l = dynamic_cast (l->axis_group_l_a_[X_AXIS]); while (!r->is_type_b (Paper_column::static_name ())) - r = r->axis_group_l_a_[X_AXIS]->access_Score_element ()->access_Item (); + r = dynamic_cast (r->axis_group_l_a_[X_AXIS]); Paper_column *p1 = (Paper_column*)l; Paper_column* p2 = (Paper_column*)r; @@ -176,7 +176,7 @@ Item::do_unlink() Paper_column * Item::column_l () const { - return axis_group_l_a_[X_AXIS]->access_Score_element ()->access_Item ()->column_l (); + return dynamic_cast (axis_group_l_a_[X_AXIS]) ->column_l (); } Item::Item (Item const &s)