[fdo-commits] r678 - branches/3.2.x/Fdo/Unmanaged/Inc/Common
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Fri Jan 26 12:48:41 EST 2007
Author: romicadascalescu
Date: 2007-01-26 12:48:40 -0500 (Fri, 26 Jan 2007)
New Revision: 678
Modified:
branches/3.2.x/Fdo/Unmanaged/Inc/Common/IDisposable.h
branches/3.2.x/Fdo/Unmanaged/Inc/Common/Ptr.h
Log:
Adding virtual to FdoIDisposable: AddRef,Release,GetRefCount
Modified: branches/3.2.x/Fdo/Unmanaged/Inc/Common/IDisposable.h
===================================================================
--- branches/3.2.x/Fdo/Unmanaged/Inc/Common/IDisposable.h 2007-01-26 17:18:03 UTC (rev 677)
+++ branches/3.2.x/Fdo/Unmanaged/Inc/Common/IDisposable.h 2007-01-26 17:48:40 UTC (rev 678)
@@ -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: branches/3.2.x/Fdo/Unmanaged/Inc/Common/Ptr.h
===================================================================
--- branches/3.2.x/Fdo/Unmanaged/Inc/Common/Ptr.h 2007-01-26 17:18:03 UTC (rev 677)
+++ branches/3.2.x/Fdo/Unmanaged/Inc/Common/Ptr.h 2007-01-26 17:48:40 UTC (rev 678)
@@ -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