X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmoment.cc;h=20c1f58a0b51cdef2e0c5e42e16c4dced7014e7d;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=0ad463c5ad1743c958b3158a88a90b3e09f6ea8a;hpb=8cd6c7945283badb27640b3a0020808ace14a27a;p=lilypond.git diff --git a/lily/moment.cc b/lily/moment.cc index 0ad463c5ad..20c1f58a0b 100644 --- a/lily/moment.cc +++ b/lily/moment.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1999--2014 Han-Wen Nienhuys + Copyright (C) 1999--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,11 +44,11 @@ Moment::Moment (Rational m) } -const char Moment::type_p_name_[] = "ly:moment?"; +const char * const Moment::type_p_name_ = "ly:moment?"; int -Moment::print_smob (SCM port, scm_print_state *) +Moment::print_smob (SCM port, scm_print_state *) const { scm_puts ("# (a); + Moment *m2 = unsmob (b); return (*m1 == *m2) ? SCM_BOOL_T : SCM_BOOL_F; } @@ -186,7 +186,7 @@ operator << (ostream &os, Moment const &m) Moment robust_scm2moment (SCM m, Moment d) { - Moment *p = Moment::unsmob (m); + Moment *p = unsmob (m); if (!p) return d; else @@ -196,5 +196,5 @@ robust_scm2moment (SCM m, Moment d) bool moment_less (SCM a, SCM b) { - return *Moment::unsmob (a) < *Moment::unsmob (b); + return *unsmob (a) < *unsmob (b); }