diff options
-rw-r--r-- | fpicker/Library_fps_office.mk | 1 | ||||
-rw-r--r-- | fpicker/source/office/asyncfilepicker.cxx | 20 | ||||
-rw-r--r-- | fpicker/source/office/asyncfilepicker.hxx | 8 |
3 files changed, 4 insertions, 25 deletions
diff --git a/fpicker/Library_fps_office.mk b/fpicker/Library_fps_office.mk index d3781de03e7f..c109dce3a978 100644 --- a/fpicker/Library_fps_office.mk +++ b/fpicker/Library_fps_office.mk @@ -25,6 +25,7 @@ $(eval $(call gb_Library_use_libraries,fps_office,\ cppu \ cppuhelper \ sal \ + salhelper \ svl \ svt \ tk \ diff --git a/fpicker/source/office/asyncfilepicker.cxx b/fpicker/source/office/asyncfilepicker.cxx index e1c2ebe33cf4..d9b18cb405c9 100644 --- a/fpicker/source/office/asyncfilepicker.cxx +++ b/fpicker/source/office/asyncfilepicker.cxx @@ -29,8 +29,7 @@ namespace svt { AsyncPickerAction::AsyncPickerAction( SvtFileDialog* _pDialog, SvtFileView* _pView, const Action _eAction ) - :m_refCount ( 0 ) - ,m_eAction ( _eAction ) + :m_eAction ( _eAction ) ,m_pView ( _pView ) ,m_pDialog ( _pDialog ) ,m_bRunning ( false ) @@ -45,23 +44,6 @@ namespace svt } - oslInterlockedCount SAL_CALL AsyncPickerAction::acquire() - { - return osl_atomic_increment( &m_refCount ); - } - - - oslInterlockedCount SAL_CALL AsyncPickerAction::release() - { - if ( 0 == osl_atomic_decrement( &m_refCount ) ) - { - delete this; - return 0; - } - return m_refCount; - } - - void AsyncPickerAction::cancel() { DBG_TESTSOLARMUTEX(); diff --git a/fpicker/source/office/asyncfilepicker.hxx b/fpicker/source/office/asyncfilepicker.hxx index 77a93e6f7f8a..cea8899f22f3 100644 --- a/fpicker/source/office/asyncfilepicker.hxx +++ b/fpicker/source/office/asyncfilepicker.hxx @@ -24,6 +24,7 @@ #include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <com/sun/star/uno/Sequence.h> +#include <salhelper/simplereferenceobject.hxx> class SvtFileView; class SvtFileDialog; @@ -39,7 +40,7 @@ namespace svt //= AsyncPickerAction - class AsyncPickerAction : public ::rtl::IReference + class AsyncPickerAction : public salhelper::SimpleReferenceObject { public: enum Action @@ -50,7 +51,6 @@ namespace svt }; private: - mutable oslInterlockedCount m_refCount; Action m_eAction; SvtFileView* m_pView; SvtFileDialog* m_pDialog; @@ -83,10 +83,6 @@ namespace svt /// cancels the running action void cancel(); - // IReference overridables - virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE; - virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE; - protected: virtual ~AsyncPickerAction(); |