]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/grob-array.hh
clear lexer scopes after parsing file. Plugs pseudo memory leak
[lilypond.git] / lily / include / grob-array.hh
index 47580b38d168116e3605da9a75216356c9e1e721..e5cee3d10d1bc52499913ee66402e9099ea6651b 100644 (file)
@@ -18,7 +18,7 @@ class Grob_array
   vector<Grob*> grobs_;
   bool ordered_;
 
-  DECLARE_SIMPLE_SMOBS (Grob_array,);
+  DECLARE_SIMPLE_SMOBS (Grob_array);
 
   Grob_array ();
 public:
@@ -29,6 +29,7 @@ public:
   Grob *grob (vsize i) { return grobs_.at (i); }
   vsize size () const { return grobs_.size (); }
   bool empty () const;
+  void remove_duplicates ();
   void clear ();
   void add (Grob *x) { grobs_.push_back (x); }
   void set_array (vector<Grob*> const &src);