X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-layout-problem.cc;h=479ac72bf72ec1152a3b4bd78affeae26fe78262;hb=8659a99f233f5c4684292728e7ad4206669b35b0;hp=ebe147d59e6230e65960f845ce0de7a69b4ae08d;hpb=59a6d1a06432fc0ca88c3023c646182f389ec1b5;p=lilypond.git diff --git a/lily/page-layout-problem.cc b/lily/page-layout-problem.cc index ebe147d59e..479ac72bf7 100644 --- a/lily/page-layout-problem.cc +++ b/lily/page-layout-problem.cc @@ -35,8 +35,6 @@ #include "text-interface.hh" #include "lily-imports.hh" -using std::vector; - /* Returns the number of footnotes associated with a given line. */ @@ -189,7 +187,7 @@ Page_layout_problem::add_footnotes_to_lines (SCM lines, int counter, Paper_book numbers = scm_cons (stencil, numbers); if (!st->extent (X_AXIS).is_empty ()) - max_length = std::max (max_length, st->extent (X_AXIS)[RIGHT]); + max_length = max (max_length, st->extent (X_AXIS)[RIGHT]); counter++; } @@ -451,7 +449,7 @@ Page_layout_problem::Page_layout_problem (Paper_book *pb, SCM page_scm, SCM syst for (SCM s = systems; scm_is_pair (s); s = scm_cdr (s)) { - bool first = (s == systems); + bool first = scm_is_eq (s, systems); if (Grob *g = unsmob (scm_car (s))) { @@ -665,7 +663,7 @@ Page_layout_problem::append_prob (Prob *prob, Spring const &spring, Real padding if (sky) { - minimum_distance = std::max ((*sky)[UP].distance (bottom_skyline_), + minimum_distance = max ((*sky)[UP].distance (bottom_skyline_), bottom_loose_baseline_); bottom_skyline_ = (*sky)[DOWN]; } @@ -1126,7 +1124,7 @@ Page_layout_problem::get_fixed_spacing (Grob *before, Grob *after, int spaceable { SCM forced = robust_list_ref (spaceable_index - 1, manual_dists); if (scm_is_number (forced)) - ret = std::max (ret, scm_to_double (forced)); + ret = max (ret, scm_to_double (forced)); } }