]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/staff-side.cc
release: 0.1.7
[lilypond.git] / 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;
 }