]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/book.cc
Issue 4135/2: Replace mark_smob static member functions with non-static members
[lilypond.git] / lily / book.cc
index 6a09d77b69b6f85439e39717350614cce1425e8f..4c426da4fd16c63cae9d9e6880fdeafdeeee70e7 100644 (file)
@@ -106,17 +106,15 @@ Book::~Book ()
 
 
 SCM
-Book::mark_smob (SCM s)
+Book::mark_smob ()
 {
-  Book *book = (Book *) SCM_CELL_WORD_1 (s);
+  if (paper_)
+    scm_gc_mark (paper_->self_scm ());
+  scm_gc_mark (scores_);
+  scm_gc_mark (bookparts_);
+  scm_gc_mark (input_location_);
 
-  if (book->paper_)
-    scm_gc_mark (book->paper_->self_scm ());
-  scm_gc_mark (book->scores_);
-  scm_gc_mark (book->bookparts_);
-  scm_gc_mark (book->input_location_);
-
-  return book->header_;
+  return header_;
 }
 
 int