X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Faxis-group-interface.cc;h=e842cb6d804a9bb70454ff1b6db6c9a7f5791dd0;hb=79575c7fdd6596cea0489e7054c6df919846375e;hp=a053fd2fdba0e7fc5b5d1c95c7eac5b0d9282376;hpb=cb0b407e567feca71cbc5f9479a06b266c69a26c;p=lilypond.git diff --git a/lily/axis-group-interface.cc b/lily/axis-group-interface.cc index a053fd2fdb..e842cb6d80 100644 --- a/lily/axis-group-interface.cc +++ b/lily/axis-group-interface.cc @@ -40,11 +40,6 @@ #include "warn.hh" #include "unpure-pure-container.hh" -using std::multimap; -using std::pair; -using std::string; -using std::vector; - static bool pure_staff_priority_less (Grob *const &g1, Grob *const &g2); @@ -273,7 +268,7 @@ Axis_group_interface::adjacent_pure_heights (SCM smob) d = (d == CENTER) ? UP : d; Interval_t rank_span = g->spanned_rank_interval (); - vsize first_break = lower_bound (ranks, (vsize)rank_span[LEFT], std::less ()); + vsize first_break = lower_bound (ranks, (vsize)rank_span[LEFT], less ()); if (first_break > 0 && ranks[first_break] >= (vsize)rank_span[LEFT]) first_break--; @@ -327,7 +322,7 @@ Interval Axis_group_interface::relative_pure_height (Grob *me, int start, int end) { /* It saves a _lot_ of time if we assume a VerticalAxisGroup is additive - (ie. height (i, k) = std::max (height (i, j) height (j, k)) for all i <= j <= k). + (ie. height (i, k) = max (height (i, j) height (j, k)) for all i <= j <= k). Unfortunately, it isn't always true, particularly if there is a VerticalAlignment somewhere in the descendants. @@ -689,8 +684,8 @@ avoid_outside_staff_collisions (Grob *elt, for (vsize j = 0; j < other_v_skylines.size (); j++) { Skyline_pair const &v_other = other_v_skylines[j]; - Real pad = std::max (padding, other_padding[j]); - Real horizon_pad = std::max (horizon_padding, other_horizon_padding[j]); + Real pad = max (padding, other_padding[j]); + Real horizon_pad = max (horizon_padding, other_horizon_padding[j]); // We need to push elt up by at least this much to be above v_other. Real up = (*v_skyline)[DOWN].distance (v_other[UP], horizon_pad) + pad; @@ -841,7 +836,7 @@ add_grobs_of_one_priority (Grob *me, (*all_paddings)[dir].push_back (padding); (*all_horizon_paddings)[dir].push_back (horizon_padding); } - std::swap (elements, skipped_elements); + swap (elements, skipped_elements); skipped_elements.clear (); } }