]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.7
authorfred <fred>
Sun, 24 Mar 2002 19:50:51 +0000 (19:50 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:50:51 +0000 (19:50 +0000)
lily/staff-side.cc

index a661a0cb974d1721251dbe63b8535af057ab8768..6cade842a53a5f892e73be8aaf4508d472dd0e73 100644 (file)
@@ -106,13 +106,7 @@ Staff_side::do_post_processing()
 void
 Staff_side::do_substitute_dependency(Score_elem*o, Score_elem*n)
 { 
-    int i;
-    while ((i=support_l_arr_.find_i(o) ) >=0)
-       if (n) 
-           support_l_arr_[i] = n;
-       else
-           support_l_arr_.del(i);
-
+    support_l_arr_.unordered_substitute(o,n);
     if (staff_sym_l_ == o)
        staff_sym_l_ = n ? (Staff_symbol*) n->spanner():0;
 }