]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.50
authorfred <fred>
Tue, 26 Mar 2002 21:50:34 +0000 (21:50 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:50:34 +0000 (21:50 +0000)
lib/include/source.hh
lib/source.cc

index 7f4a21e7d1cabd2f118fbb8ae50ee08d69880d05..7de83441f3c85dacf4089f327d4b0e0a10aec20c 100644 (file)
@@ -8,11 +8,17 @@
 #include "cons.hh"
 #include "proto.hh"
 
+/**
+   a set of sourcefiles.
 
+   TODO: 
+ */
 class Sources 
 {
+  Sources (Sources const&) {}
 public:
   Sources ();
+  ~Sources();
 
   Source_file * get_file_l (String &filename );
   Source_file* sourcefile_l (char const* ch_C );
index 66372945de4cc60ac2e7f8f47049828b83a4bdcc..e7304d1afcedfddc2a5521fd2e78eab0aa9f4a6e 100644 (file)
@@ -18,6 +18,7 @@
 
 Sources::Sources ()
 {
+  sourcefile_p_list_ = 0;
   path_C_= 0;
   binary_b_ = false;
 }
@@ -64,6 +65,10 @@ Sources::add (Source_file* sourcefile_p)
   sourcefile_p_list_ = new Killing_cons<Source_file> (sourcefile_p, sourcefile_p_list_);
 }
 
+Sources::~Sources ()
+{
+  delete sourcefile_p_list_;
+}
 /**
   search the list for file whose map contains pointer #ch_C#