]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pitch.cc
Doc: NR- small typo in Pitches.itely
[lilypond.git] / lily / pitch.cc
index 0fd75129476a7a1d889d751c504e290f22c30843..e34562fecc5571fe83ab21b5c3b5df677ffb36d9 100644 (file)
@@ -221,13 +221,13 @@ Pitch::down_to (int notename)
 const char Pitch::type_p_name_[] = "ly:pitch?";
 
 SCM
-Pitch::mark_smob ()
+Pitch::mark_smob () const
 {
   return scale_->self_scm ();
 }
 
 int
-Pitch::print_smob (SCM port, scm_print_state *)
+Pitch::print_smob (SCM port, scm_print_state *) const
 {
   scm_puts ("#<Pitch ", port);
   scm_display (ly_string2scm (to_string ()), port);
@@ -252,8 +252,8 @@ MAKE_SCHEME_CALLBACK (Pitch, less_p, 2);
 SCM
 Pitch::less_p (SCM p1, SCM p2)
 {
-  Pitch *a = Pitch::unsmob (p1);
-  Pitch *b = Pitch::unsmob (p2);
+  Pitch *a = unsmob<Pitch> (p1);
+  Pitch *b = unsmob<Pitch> (p2);
 
   if (compare (*a, *b) < 0)
     return SCM_BOOL_T;