]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tuplet-number.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / tuplet-number.cc
index 4d879ade4c46b37fb143339358a592b11e76971d..a28458b2b8857c8b7aa6fda28f81eb078b78e35a 100644 (file)
@@ -34,6 +34,8 @@
 #include "stem.hh"
 #include "warn.hh"
 
+using std::vector;
+
 /*
   The reference stem is used to determine on which side of the beam to place
   the tuplet number when it is positioned independently of a bracket.  (The number
@@ -340,7 +342,7 @@ count_beams_not_touching_stem (SCM beaming)
         ++count;
     }
 
-  return max (0, count - 1);
+  return std::max (0, count - 1);
 }
 
 MAKE_SCHEME_CALLBACK (Tuplet_number, calc_y_offset, 1);
@@ -416,8 +418,8 @@ Tuplet_number::calc_y_offset (SCM smob)
                   : staff_ext_y[DOWN] > ref_stem_ext[UP];
       if (move)
         {
-          Interval ledger_domain = Interval (min (staff_ext_y[UP], ref_stem_ext[UP]),
-                                             max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
+          Interval ledger_domain = Interval (std::min (staff_ext_y[UP], ref_stem_ext[UP]),
+                                             std::max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
           Interval num_y (me->extent (commony, Y_AXIS));
           num_y.translate (y_offset);
           Interval num_ledger_overlap (num_y);