]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest-collision.cc
Issue 4365: non-member unsmob<T> replaces T::unsmob and T::is_smob
[lilypond.git] / lily / rest-collision.cc
index 7648f6d9a09825109e54f879442e3b3d1c2f2fca..86de7a9c3d7f2588880a64a0d1862ebf4a81f3ad 100644 (file)
@@ -41,7 +41,7 @@ MAKE_SCHEME_CALLBACK_WITH_OPTARGS (Rest_collision, force_shift_callback_rest, 2,
 SCM
 Rest_collision::force_shift_callback_rest (SCM rest, SCM offset)
 {
-  Grob *rest_grob = Grob::unsmob (rest);
+  Grob *rest_grob = unsmob<Grob> (rest);
   Grob *parent = rest_grob->get_parent (X_AXIS);
 
   /*
@@ -53,7 +53,7 @@ Rest_collision::force_shift_callback_rest (SCM rest, SCM offset)
 
   if (Note_column::has_interface (parent) && Note_column::has_rests (parent))
     {
-      Grob *collision = Grob::unsmob (parent->get_object ("rest-collision"));
+      Grob *collision = unsmob<Grob> (parent->get_object ("rest-collision"));
 
       if (collision)
         (void) collision->get_property ("positioning-done");
@@ -69,7 +69,7 @@ Rest_collision::add_column (Grob *me, Grob *p)
 
   p->set_object ("rest-collision", me->self_scm ());
 
-  Grob *rest = Grob::unsmob (p->get_object ("rest"));
+  Grob *rest = unsmob<Grob> (p->get_object ("rest"));
   if (rest)
     {
       chain_offset_callback (rest,
@@ -96,7 +96,7 @@ MAKE_SCHEME_CALLBACK (Rest_collision, calc_positioning_done, 1);
 SCM
 Rest_collision::calc_positioning_done (SCM smob)
 {
-  Grob *me = Grob::unsmob (smob);
+  Grob *me = unsmob<Grob> (smob);
 
   me->set_property ("positioning-done", SCM_BOOL_T);
 
@@ -110,7 +110,7 @@ Rest_collision::calc_positioning_done (SCM smob)
       Grob *e = elts[i];
       if (Note_column::has_interface (e))
         {
-          if (Grob::unsmob (e->get_object ("rest")))
+          if (unsmob<Grob> (e->get_object ("rest")))
             rests.push_back (e);
           else
             notes.push_back (e);