X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fscore.cc;h=99ec51880a3672e5741447a5ff66864544cc1f73;hb=9f3572d98bb948c9689cd1f75401a029451fa001;hp=3f00330e61336c875aa3c97d618157468e2befd7;hpb=04265f11d1f21416ccebd2dcaa1d903dc781b36e;p=lilypond.git diff --git a/lily/score.cc b/lily/score.cc index 3f00330e61..99ec51880a 100644 --- a/lily/score.cc +++ b/lily/score.cc @@ -28,21 +28,13 @@ using namespace std; #include "ly-smobs.icc" -Input * -Score::origin () const -{ - return unsmob_input (input_location_); -} - - Score::Score () + : Input () { header_ = SCM_EOL; music_ = SCM_EOL; error_found_ = false; - input_location_ = SCM_EOL; smobify_self (); - input_location_ = make_input (Input ()); } Score::~Score () @@ -61,8 +53,6 @@ Score::mark_smob (SCM s) scm_gc_mark (sc->header_); for (vsize i = sc->defs_.size (); i--;) scm_gc_mark (sc->defs_[i]->self_scm ()); - - scm_gc_mark (sc->input_location_); return sc->music_; } @@ -75,13 +65,12 @@ Score::print_smob (SCM, SCM p, scm_print_state*) } Score::Score (Score const &s) + : Input (s) { header_ = SCM_EOL; music_ = SCM_EOL; error_found_ = s.error_found_; - input_location_ = SCM_EOL; smobify_self (); - input_location_ = make_input (*s.origin ()); Music *m = unsmob_music (s.music_); if (m)