]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/item.hh
PO: update template.
[lilypond.git] / lily / include / item.hh
index ac945eac413527b926defcdef5e66b514465f88a..9342d6f981700db69ba3461b15e821016edd7692 100644 (file)
@@ -36,7 +36,12 @@ public:
   Item (SCM);
   Item (Item const &);
 
-  static Item *unsmob (SCM);
+  static Item *unsmob (SCM g) {
+    return dynamic_cast <Item *> (Grob::unsmob (g));
+  }
+  static bool is_smob (SCM g) {
+    return Grob::is_smob (g) && unsmob (g);
+  }
 
   virtual Grob *clone () const;