]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-item.cc
release: 1.3.29
[lilypond.git] / lily / text-item.cc
index 034173e7c5688a18c6fe3d292b99340a9b91f0cd..ea0c6f2475aa8efc99a036004c48c2d6c9f313dd 100644 (file)
 #include "paper-def.hh"
 #include "lookup.hh"
 
-Molecule*
-Text_item::do_brew_molecule_p () const
+Molecule 
+Text_item::do_brew_molecule () const
 {
   SCM style = get_elt_property ("style");
   String st = gh_string_p (style) ?  ly_scm2string (style) : "";
   SCM txt = get_elt_property ("text");
   String t = gh_string_p (txt) ? ly_scm2string (txt) : "";
   
-  Molecule a= paper_l ()->lookup_l(0)->text (st, t, paper_l ());
-
-  return new Molecule (a);
+  return paper_l ()->lookup_l(0)->text (st, t, paper_l ());
 }