X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator.icc;h=0362b5b6c5971e5a04458464507a70ec9168821f;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=e384d4c7fb98369fa7a658eef6deda857e66e74b;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/include/translator.icc b/lily/include/translator.icc index e384d4c7fb..0362b5b6c5 100644 --- a/lily/include/translator.icc +++ b/lily/include/translator.icc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2011 Han-Wen Nienhuys + Copyright (C) 2005--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 @@ -36,8 +36,8 @@ static void _ ## T ## _adder () \ { \ T *t = new T; \ - T::static_description_ = t->static_translator_description (); \ - scm_permanent_object (T::static_description_); \ + T::static_description_ = \ + scm_permanent_object (t->static_translator_description ()); \ add_translator (t); \ } \ SCM T::translator_description () const \ @@ -153,7 +153,7 @@ IMPLEMENT_LISTENER (cl, _listen_scm_ ## m) \ void \ cl::_listen_scm_ ## m (SCM sev) \ { \ - Stream_event *ev = unsmob_stream_event (sev); \ + Stream_event *ev = Stream_event::unsmob (sev); \ protect_event (sev); \ listen_ ## m (ev); \ }