]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/staff-side.cc
release: 0.1.7
[lilypond.git] / lily / staff-side.cc
index 9cb61495f960c92bf75e1d770f1dff481ddc5c8c..6cade842a53a5f892e73be8aaf4508d472dd0e73 100644 (file)
@@ -106,16 +106,10 @@ 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;
 }
 
-IMPLEMENT_STATIC_NAME(Staff_side);
+
 IMPLEMENT_IS_TYPE_B1(Staff_side, Score_elem);