]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/custos.cc
Issue 4550 (1/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / custos.cc
index 1366202f725013905fb37844b874628bec5e3bf0..3ba5db834e22f7a79c8f770f3fdc2493a5f6000b 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2000--2012 Juergen Reuter <reuter@ipd.uka.de>
+  Copyright (C) 2000--2015 Juergen Reuter <reuter@ipd.uka.de>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -37,11 +37,13 @@ using namespace std;
 #include "staff-symbol-referencer.hh"
 #include "warn.hh"
 
+using std::string;
+
 MAKE_SCHEME_CALLBACK (Custos, print, 1);
 SCM
 Custos::print (SCM smob)
 {
-  Item *me = (Item *)unsmob_grob (smob);
+  Item *me = (Item *)unsmob<Grob> (smob);
 
   SCM scm_style = me->get_property ("style");
   string style;