[ekiga/gnome-2-26] Completed the GmRefCounted class



commit da6a0f44975328d87b2aef7f261180bbaea94f2c
Author: Julien Puydt <jpuydt src gnome org>
Date:   Tue Mar 24 21:07:47 2009 +0000

    Completed the GmRefCounted class
    
    svn path=/trunk/; revision=7808
---
 lib/engine/framework/gmref.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/lib/engine/framework/gmref.h b/lib/engine/framework/gmref.h
index a2107f2..f570070 100644
--- a/lib/engine/framework/gmref.h
+++ b/lib/engine/framework/gmref.h
@@ -92,7 +92,7 @@ template<typename T> bool operator!=(const gmref_ptr<T>& a,
 template<typename T> bool operator<(const gmref_ptr<T>& a,
 				    const gmref_ptr<T>& b);
 
-/* base class for a reference counted object : serves mostly
+/* base class for a reference counted object
  */
 class GmRefCounted
 {
@@ -100,6 +100,12 @@ public:
   GmRefCounted (): refcount(0)
   {}
 
+  GmRefCounted (const GmRefCounted& /*other*/): refcount(0)
+  {}
+
+  GmRefCounted& operator= (const GmRefCounted& /*other*/)
+  { return *this; }
+
   virtual ~GmRefCounted ()
   {}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]