]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/volta-repeat-iterator.cc
Replace C++ (in)equality checks with proper SCM syntax
[lilypond.git] / lily / volta-repeat-iterator.cc
index 09c2495f05dae8febe0184981b174d2f1d3cedf1..bcbc34f8cb3b9d3800436d495ac33c8ce65cc6e9 100644 (file)
@@ -85,8 +85,7 @@ Volta_repeat_iterator::add_repeat_command (SCM what)
   SCM current_reps = SCM_EOL;
   Context *where = get_outlet ()->where_defined (reps, &current_reps);
 
-  if (where
-      && (current_reps == SCM_EOL || scm_is_pair (current_reps)))
+  if (where && ly_cheap_is_list (current_reps))
     {
       current_reps = scm_cons (what, current_reps);
       where->set_property (reps, current_reps);