]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-tremolo.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / stem-tremolo.cc
index f88b41c450be6095b6158bf827a6275b50804805..1c44a67924b2e13319ac58a443aa3e6322201de0 100644 (file)
@@ -180,7 +180,7 @@ Stem_tremolo::pure_height (SCM smob, SCM, SCM)
   int beam_count = Stem::beam_multiplicity (stem).length () + 1;
   Real beam_translation = get_beam_translation (me);
 
-  ph = ph - dir * max (beam_count, 1) * beam_translation;
+  ph = ph - dir * std::max (beam_count, 1) * beam_translation;
   ph = ph - ph.center ();
 
   return ly_interval2scm (ph);
@@ -304,14 +304,14 @@ Stem_tremolo::y_offset (Grob *me, bool pure)
       Stem_info si = Stem::get_stem_info (stem);
       ph[-dir] = si.shortest_y_;
 
-      return (ph - dir * max (beam_count, 1) * beam_translation)[dir] - dir * 0.5 * me->pure_y_extent (me, 0, INT_MAX).length ();
+      return (ph - dir * std::max (beam_count, 1) * beam_translation)[dir] - dir * 0.5 * me->pure_y_extent (me, 0, INT_MAX).length ();
     }
 
   Real end_y
     = (pure
        ? stem->pure_y_extent (stem, 0, INT_MAX)[dir]
        : stem->extent (stem, Y_AXIS)[dir])
-      - dir * max (beam_count, 1) * beam_translation
+      - dir * std::max (beam_count, 1) * beam_translation
       - Stem::beam_end_corrective (stem);
 
   if (!beam && Stem::duration_log (stem) >= 3)