]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-info.cc
Issue 4550 (1/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / grob-info.cc
index ee79e4ec661aebbc5414d4794dc5b8c804385336..fa4b63c8cb5e022e1eef52cbd4c9ed296ebda0b3 100644 (file)
@@ -25,6 +25,8 @@
 #include "stream-event.hh"
 #include "translator-group.hh"
 
+using std::vector;
+
 Grob_info::Grob_info (Translator *t, Grob *g)
 {
   origin_trans_ = t;
@@ -50,7 +52,7 @@ Stream_event *
 Grob_info::event_cause () const
 {
   SCM cause = grob_->get_property ("cause");
-  return Stream_event::unsmob (cause);
+  return unsmob<Stream_event> (cause);
 }
 
 vector<Context *>
@@ -90,11 +92,11 @@ Stream_event *
 Grob_info::ultimate_event_cause () const
 {
   SCM cause = grob_->self_scm ();
-  while (Grob::is_smob (cause))
+  while (unsmob<Grob> (cause))
     {
-      cause = Grob::unsmob (cause)->get_property ("cause");
+      cause = unsmob<Grob> (cause)->get_property ("cause");
     }
-  return Stream_event::unsmob (cause);
+  return unsmob<Stream_event> (cause);
 }
 
 bool