summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-07 09:52:35 +0200
committerNoel Grandin <noel@peralex.com>2014-07-08 08:56:18 +0200
commit623893427221bdab2f5c7339dd152e371132d83e (patch)
treea339834b82ece8e6062287aa3e4ffc3db22890ff /xmloff/source
parent065d6cc3f3a139e24eb43422344e22b836063a86 (diff)
use SimpleReferenceObject in xmloff module
to replace hand-rolled version Change-Id: I36d4ce14d0c0c8a4b224a240c6e25c8df99b78aa
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/forms/handler/property_handler_base.cxx13
-rw-r--r--xmloff/source/forms/handler/property_handler_base.hxx14
2 files changed, 1 insertions, 26 deletions
diff --git a/xmloff/source/forms/handler/property_handler_base.cxx b/xmloff/source/forms/handler/property_handler_base.cxx
index e92b16b4b530..ea8f16bd1a4d 100644
--- a/xmloff/source/forms/handler/property_handler_base.cxx
+++ b/xmloff/source/forms/handler/property_handler_base.cxx
@@ -27,19 +27,6 @@ namespace xmloff
{
}
- oslInterlockedCount SAL_CALL PropertyHandlerBase::acquire()
- {
- return osl_atomic_increment( &m_refCount );
- }
-
- oslInterlockedCount SAL_CALL PropertyHandlerBase::release()
- {
- oslInterlockedCount decremented = osl_atomic_decrement( &m_refCount );
- if ( 0 == decremented )
- delete this;
- return decremented;
- }
-
} // namespace xmloff
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/source/forms/handler/property_handler_base.hxx b/xmloff/source/forms/handler/property_handler_base.hxx
index 48f380f1db77..0cf4d0d43e0d 100644
--- a/xmloff/source/forms/handler/property_handler_base.hxx
+++ b/xmloff/source/forms/handler/property_handler_base.hxx
@@ -22,8 +22,6 @@
#include "forms/property_handler.hxx"
-#include <osl/interlck.h>
-
namespace xmloff
{
@@ -31,19 +29,9 @@ namespace xmloff
class PropertyHandlerBase : public IPropertyHandler
{
protected:
- PropertyHandlerBase()
- :m_refCount( 0 )
- {
- }
+ PropertyHandlerBase() {}
virtual ~PropertyHandlerBase();
-
- // IReference
- virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE;
- virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE;
-
- private:
- oslInterlockedCount m_refCount;
};
} // namespace xmloff