- Array<Slice> *arrs[] = {
- &it_indices, &sp_indices
- };
-
- for (int i = 0; i < it_index ;i++)
- {
- for (int j = vec[i].left_; j <= vec[i].right_; j++)
- {
- it_indices[j - system_range[LEFT]].add_point (i);
- }
- }
-
-#if 0
- qsort (vec + sp_index, len - sp_index,
- sizeof (Substitution_entry), &Substitution_entry::spanner_compare);
- /*
- This is a waste of time -- the staff-spanners screw up the
- ordering, since they go across the entire score.
- */
- for (int i = sp_index; i < len ;i++)
- {
-
- for (int j = vec[i].left_; j <= vec[i].right_; j++)
- {
- sp_indices[j - system_range[LEFT]].add_point (i);
- }
- }
-#else
- for (int i = sp_indices.size(); i--;)
- sp_indices[i]= Slice (sp_index, len-1);
-#endif
+ vector<Slice> item_indices;
+ vector<Slice> spanner_indices;
+ for (int i = 0; i <= system_range.length (); i++)
+ {
+ item_indices.push_back (Slice (len, 0));
+ spanner_indices.push_back (Slice (len, 0));
+ }