[fdo-commits] r679 - trunk/Fdo/Unmanaged/Inc/Common

svn_fdo at osgeo.org svn_fdo at osgeo.org
Fri Jan 26 12:49:12 EST 2007


Author: romicadascalescu
Date: 2007-01-26 12:49:11 -0500 (Fri, 26 Jan 2007)
New Revision: 679

Modified:
   trunk/Fdo/Unmanaged/Inc/Common/IDisposable.h
   trunk/Fdo/Unmanaged/Inc/Common/Ptr.h
Log:
Adding virtual to FdoIDisposable: AddRef,Release,GetRefCount

Modified: trunk/Fdo/Unmanaged/Inc/Common/IDisposable.h
===================================================================
--- trunk/Fdo/Unmanaged/Inc/Common/IDisposable.h	2007-01-26 17:48:40 UTC (rev 678)
+++ trunk/Fdo/Unmanaged/Inc/Common/IDisposable.h	2007-01-26 17:49:11 UTC (rev 679)
@@ -60,7 +60,7 @@
     /// \return
     /// Returns the new reference count (value for debugging use only).
     /// 
-    FDO_API_COMMON FdoInt32 AddRef() { return ++m_refCount; }
+    FDO_API_COMMON virtual FdoInt32 AddRef() { return ++m_refCount; }
 
     /// \brief
     /// Decrease the reference count.
@@ -68,7 +68,7 @@
     /// \return
     /// Returns the new reference count (value for debugging use only).
     /// 
-    FDO_API_COMMON FdoInt32 Release() { if (0 != --m_refCount ) return m_refCount; Dispose(); return 0; }
+    FDO_API_COMMON virtual FdoInt32 Release() { if (0 != --m_refCount ) return m_refCount; Dispose(); return 0; }
 
     /// \brief
     /// Retrieves the reference count.
@@ -76,7 +76,7 @@
     /// \return
     /// Returns the existing reference count value.
     /// 
-    FDO_API_COMMON FdoInt32 GetRefCount() { return m_refCount; }
+    FDO_API_COMMON virtual FdoInt32 GetRefCount() { return m_refCount; }
 
 private:
     FdoInt32    m_refCount;

Modified: trunk/Fdo/Unmanaged/Inc/Common/Ptr.h
===================================================================
--- trunk/Fdo/Unmanaged/Inc/Common/Ptr.h	2007-01-26 17:48:40 UTC (rev 678)
+++ trunk/Fdo/Unmanaged/Inc/Common/Ptr.h	2007-01-26 17:49:11 UTC (rev 679)
@@ -30,8 +30,8 @@
 class _NoAddRefReleaseOnFdoPtr : public T
 {
     private:
-        virtual void AddRef()  = 0;
-        virtual void Release() = 0;
+        virtual FdoInt32 AddRef()  = 0;
+        virtual FdoInt32 Release() = 0;
 };
 
 template <class T>



More information about the fdo-commits mailing list