[ekiga/gnome-2-26] Completed the GmRefCounted class
- From: Eugen Dedu <ededu src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga/gnome-2-26] Completed the GmRefCounted class
- Date: Mon, 27 Apr 2009 11:59:00 -0400 (EDT)
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]