]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-spacing.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / page-spacing.cc
index ce9aabedac0d0e1e3cc34f5ec4a9e7b329eea28c..f9cb9540d1a0b51eb4f9507eaa99cadc8f044708 100644 (file)
@@ -37,7 +37,7 @@ Page_spacing::calc_force ()
     force_ = -infinity_f;
   else
     force_ = (height - rod_height_ - last_line_.bottom_padding_ - spring_len_)
-             / max (0.1, inverse_spring_k_);
+             / std::max (0.1, inverse_spring_k_);
 }
 
 void
@@ -356,7 +356,7 @@ Page_spacer::calc_subproblem (vsize page, vsize line)
           // Clamp the demerits at BAD_SPACING_PENALTY, even if the page
           // is overfull.  This ensures that TERRIBLE_SPACING_PENALTY takes
           // precedence over overfull pages.
-          demerits = min (demerits, BAD_SPACING_PENALTY);
+          demerits = std::min (demerits, BAD_SPACING_PENALTY);
           demerits += (prev ? prev->demerits_ : 0);
 
           Real penalty = breaker_->line_count_penalty (line_count);