bsd lang segv fix, enable bsd lv2, lv2 gui enable fix, proxy/ffmpeg toggle resize...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / garbage.h
index bc39e40ff5e3fb4b23a667e8b32b3ae6760e55c9..7f44a58554c3ae3e94ed41a6324218eb3049fcef 100644 (file)
@@ -2,21 +2,21 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- * 
+ *
  */
 
 #ifndef GARBAGE_H
@@ -29,7 +29,7 @@
 
 // Garbage collection
 // The objects inherit from GarbageObject.
-// The constructor sets users to 1 so the caller must call 
+// The constructor sets users to 1 so the caller must call
 // Garbage::remove_user when it's done.
 // Other users of the object must call add_user to increment the user count
 // and Garbage::remove_user to decriment the user count.
@@ -49,6 +49,8 @@
 
 class Garbage
 {
+       Garbage(Garbage &v) {} //disallow copy constructor
+       Garbage &operator=(Garbage &v) { return *this=v; } //disallow = operator
 public:
        Garbage(const char *title);
        virtual ~Garbage();
@@ -56,7 +58,7 @@ public:
 // Called when user begins to use the object.
        void add_user();
        int remove_user();
-       
+
        int users;
        int deleted;
        char *title;
@@ -70,20 +72,20 @@ public:
 // public:
 //     Garbage();
 //     ~Garbage();
-// 
+//
 // // Called by GarbageObject constructor
 // //  void add_object(GarbageObject *ptr);
-// 
+//
 // // Called by user to delete the object.
 // // Flags the object for deletion as soon as it has no users.
 //     static void delete_object(GarbageObject *ptr);
-// 
-// 
+//
+//
 // // Called by remove_user and delete_object
 // //  static void remove_expired();
 //     Mutex *lock;
 // //  ArrayList<GarbageObject*> objects;
-// 
+//
 // // Global garbage collector
 //     static Garbage *garbage;
 // };