]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-collision.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / note-collision.cc
index 4d1303b739e5e77d31b0f1566c4392340867df13..18e8e00dbaf6ba1831d23d57d45c128dceea786b 100644 (file)
@@ -524,11 +524,11 @@ Note_collision_interface::automatic_shift (Grob *me,
 
               // check if we cross the opposite-stemmed voices
               if (d * extents[d][i][-d] < d * extent_union[-d][d])
-                offset = max (offset, 0.5);
+                offset = std::max (offset, 0.5);
               if (extents[-d].size ()
                   && extents[d][i][UP] > extents[-d][0][DOWN]
                   && extents[d][i][DOWN] < extents[-d][0][UP])
-                offset = max (offset, 1.0);
+                offset = std::max (offset, 1.0);
             }
           offsets[d].push_back (d * offset);
         }
@@ -595,7 +595,7 @@ Note_collision_interface::note_head_positions (Grob *me)
         out.insert (out.end (), nhp.begin (), nhp.end ());
       }
 
-  vector_sort (out, less<int> ());
+  vector_sort (out, std::less<int> ());
   return out;
 }