X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcontext.cc;h=be8a62980469199a70d88fc71ba35c089b74f56b;hb=4276123897fd7eb1cf9b06ed25f84888a7b8330e;hp=3454ab1f1735fcc257ec58a46c46d0adc21c1e3f;hpb=00ecf65cfffc37f7e7d2ecf1c5f3faa93e05799e;p=lilypond.git diff --git a/lily/context.cc b/lily/context.cc index 3454ab1f17..be8a629804 100644 --- a/lily/context.cc +++ b/lily/context.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2011 Han-Wen Nienhuys + Copyright (C) 2004--2012 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 @@ -35,7 +35,7 @@ bool Context::is_removable () const { - return context_list_ == SCM_EOL && ! iterator_count_ + return context_list_ == SCM_EOL && ! client_count_ && !dynamic_cast (daddy_context_); } @@ -82,7 +82,7 @@ Context::Context () { daddy_context_ = 0; aliases_ = SCM_EOL; - iterator_count_ = 0; + client_count_ = 0; implementation_ = 0; properties_scm_ = SCM_EOL; accepts_list_ = SCM_EOL; @@ -265,7 +265,7 @@ Context::create_context_from_event (SCM sev) if (path.size () != 1) { - programming_error (_f ("Invalid CreateContext event: Cannot create %s context", type.c_str ())); + programming_error (to_string ("Invalid CreateContext event: Cannot create %s context", type.c_str ())); return; } Context_def *cdef = path[0];