]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/sustain-pedal.cc
Issue 4550 (1/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / sustain-pedal.cc
index efefae39b4890c91351d7ab677bc985c72a55163..26a5afb56453123bb4eb9150fd0126935c12dcf3 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2000--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2000--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -20,6 +20,8 @@
 #include "stencil.hh"
 #include "font-interface.hh"
 
+using std::string;
+
 // update comment --hwn
 /*
   Urg.
@@ -48,7 +50,7 @@ MAKE_SCHEME_CALLBACK (Sustain_pedal, print, 1);
 SCM
 Sustain_pedal::print (SCM smob)
 {
-  Grob *e = unsmob_grob (smob);
+  Grob *e = unsmob<Grob> (smob);
 
   Stencil mol;
   SCM glyph = e->get_property ("text");