]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/one-line-page-breaking.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / one-line-page-breaking.cc
index 9110cdad967dd9e6602c58cf0a8db109c8dbb296..a96b37fc008610e4fce7c7a677c6e91e74acbf3d 100644 (file)
@@ -60,7 +60,7 @@ One_line_page_breaking::solve ()
           vector<Grob *> cols = ps->root_system ()->used_columns ();
 
           // No indent, "infinite" line width, ragged.
-          Column_x_positions pos = get_line_configuration (cols, numeric_limits<Real>::max (), 0, true);
+          Column_x_positions pos = get_line_configuration (cols, std::numeric_limits<Real>::max (), 0, true);
           vector<Column_x_positions> positions;
           positions.push_back (pos);
 
@@ -73,7 +73,7 @@ One_line_page_breaking::solve ()
           SCM systems = scm_list_1 (system->self_scm ());
           SCM pages = make_pages (lines_per_page, systems);
 
-          max_width = max (max_width, system->extent (system, X_AXIS).length ());
+          max_width = std::max (max_width, system->extent (system, X_AXIS).length ());
           all_pages = scm_cons (scm_car (pages), all_pages);
         }
       else if (Prob *pb = system_specs_[i].prob_)