diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-07 11:26:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-08 15:16:47 +0200 |
commit | 482f97926e1090c50ef05eed6badf311a7aa02f9 (patch) | |
tree | f2c8534cd0d3446b36f7d9d49c4cbc17ac6ac92a /accessibility | |
parent | 4861e4961f7dc4f28a14c5f9d9b969456bfec720 (diff) |
use SimpleReferenceObject in svtools module
to replace hand-rolled version
Change-Id: I7a1048ff1ea335c3934fe7e91a09489a4d7aeb96
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/helper/acc_factory.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index ed4d2daf2d64..495d93d9b0f3 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -87,16 +87,9 @@ inline bool hasFloatingChild(Window *pWindow) class AccessibleFactory :public ::toolkit::IAccessibleFactory ,public ::svt::IAccessibleFactory { -private: - oslInterlockedCount m_refCount; - public: AccessibleFactory(); - // IReference - virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE; - virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE; - // ::toolkit::IAccessibleFactory virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > createAccessibleContext( VCLXButton* _pXWindow ) SAL_OVERRIDE; @@ -228,7 +221,6 @@ protected: }; AccessibleFactory::AccessibleFactory() - :m_refCount( 0 ) { } @@ -236,22 +228,6 @@ AccessibleFactory::~AccessibleFactory() { } -oslInterlockedCount SAL_CALL AccessibleFactory::acquire() -{ - return osl_atomic_increment( &m_refCount ); -} - -oslInterlockedCount SAL_CALL AccessibleFactory::release() -{ - if ( 0 == osl_atomic_decrement( &m_refCount ) ) - { - delete this; - return 0; - } - - return m_refCount; -} - Reference< XAccessible > AccessibleFactory::createAccessible( Menu* _pMenu, sal_Bool _bIsMenuBar ) { OAccessibleMenuBaseComponent* pAccessible; |