Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(380)

Unified Diff: lily/global-context.cc

Issue 346750043: Issue 5309: Refactor Context::get_score_context () (Closed)
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/forbid-break-engraver.cc ('k') | lily/include/context.hh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/global-context.cc
diff --git a/lily/global-context.cc b/lily/global-context.cc
index f494ab4191e63c2b5025afe603aef5dacb14991e..9f477fa61d6a582fec8a9042d9901c4bacb52202 100644
--- a/lily/global-context.cc
+++ b/lily/global-context.cc
@@ -213,8 +213,8 @@ Global_context::previous_moment () const
Context *
Global_context::get_default_interpreter (const string &/* context_id */)
{
- if (get_score_context ())
- return get_score_context ()->get_default_interpreter ();
+ if (Context *score = get_score_context ())
+ return score->get_default_interpreter ();
else
return Context::get_default_interpreter ();
}
« no previous file with comments | « lily/forbid-break-engraver.cc ('k') | lily/include/context.hh » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b