diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-08 16:41:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-10 11:04:11 +0200 |
commit | a7470048bd5be5c1668bafc02d58dba97ff5a558 (patch) | |
tree | a7280173c92a0dd9e33da6ac7ee7c7ca87df2530 /extensions/source/propctrlr/formcomponenthandler.cxx | |
parent | df906cf2acffac4a4611f8b34724cdbcda068c74 (diff) |
use SimpleReferenceObject in extensions module
to replace hand-rolled version
Change-Id: Ia983f5b87c55d8e5cce6f388e0f77077b6415745
Diffstat (limited to 'extensions/source/propctrlr/formcomponenthandler.cxx')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 256317f33b3f..6c44f12ec9fd 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -2968,32 +2968,13 @@ namespace pcr protected: SQLCommandPropertyUI( const Reference< XPropertySet >& _rxObject ) : m_xObject(_rxObject) - , m_refCount(0) { if ( !m_xObject.is() ) throw NullPointerException(); } - virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE - { - return osl_atomic_increment( &m_refCount ); - } - - virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE - { - if ( 0 == osl_atomic_decrement( &m_refCount ) ) - { - delete this; - return 0; - } - return m_refCount; - } - protected: Reference< XPropertySet > m_xObject; - - private: - oslInterlockedCount m_refCount; }; |