]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/completion-note-heads-engraver.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / completion-note-heads-engraver.cc
index c88e4cccc1e8f6f391937e9a87cca340a1ab6a06..27d950b690ecbd4f8aff608bc0f3aa33946df4aa 100644 (file)
@@ -18,7 +18,6 @@
 */
 
 #include <cctype>
-using namespace std;
 
 #include "dot-column.hh"
 #include "dots.hh"
@@ -39,6 +38,8 @@ using namespace std;
 
 #include "translator.icc"
 
+using std::vector;
+
 /*
   How does this work?
 
@@ -99,7 +100,7 @@ Completion_heads_engraver::listen_note (Stream_event *ev)
   Moment now = now_mom ();
   Moment musiclen = get_event_length (ev, now);
 
-  note_end_mom_ = max (note_end_mom_, (now + musiclen));
+  note_end_mom_ = std::max (note_end_mom_, (now + musiclen));
   do_nothing_until_ = Rational (0, 0);
 }