]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/score.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / score.cc
index 3f00330e61336c875aa3c97d618157468e2befd7..99ec51880a3672e5741447a5ff66864544cc1f73 100644 (file)
@@ -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)