smobify_self ();
- Music * m =unsmob_music (s.music_);
- music_ = m?m->clone ()->self_scm () : SCM_EOL;
+ Music *m =unsmob_music (s.music_);
+ music_ = m ? m->clone ()->self_scm () : SCM_EOL;
scm_gc_unprotect_object (music_);
for (int i = 0; i < s.defs_.size (); i++)
Cpu_timer timer;
- Global_context * trans = new Global_context (odef,
- music->get_length ()
- );
+ Global_context * trans = new Global_context (odef, music->get_length ());
if (!trans)
{
iter->construct_children ();
- if (! iter->ok ())
+ if (!iter->ok ())
{
warning (_ ("Need music in a score"));
- return SCM_BOOL_F; // todo: should throw exception.
+ /* todo: should throw exception. */
+ return SCM_BOOL_F;
}
trans->run_iterator_on_me (iter);
if (verbose_global_b)
progress_indication (_f ("elapsed time: %.2f seconds", timer.read ()));
-
return scm_gc_unprotect_object (trans->self_scm ());
}