]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/translator-ctors.cc
More flexibility for tremolo slashes
[lilypond.git] / lily / translator-ctors.cc
index 58d4e515776de03825d00a0f4b8a919b7dd55a88..168f1ad6de676f38d96f84fe8782b8c0e39c4924 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -60,12 +60,12 @@ get_translator (SCM sym)
   if (global_translator_dict)
     global_translator_dict->try_retrieve (sym, &v);
 
-  if (v == SCM_BOOL_F)
+  if (scm_is_false (v))
     {
       warning (_f ("unknown translator: `%s'", ly_symbol2string (sym).c_str ()));
       return 0;
     }
 
-  return unsmob_translator (v);
+  return Translator::unsmob (v);
 }