summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/recovery
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-08 16:49:46 +0200
committerNoel Grandin <noel@peralex.com>2014-07-10 11:04:11 +0200
commitea8f32b61a51b6d9cef72bbd5ac701bef2975a39 (patch)
tree6250080d36c729f91e7307ab580eef409c26a4a6 /dbaccess/source/core/recovery
parenta7470048bd5be5c1668bafc02d58dba97ff5a558 (diff)
use SimpleReferenceObject in dbaccess module
to replace hand-rolled version Change-Id: Ie7b98c284d157521482b0f98915146133f32748e
Diffstat (limited to 'dbaccess/source/core/recovery')
-rw-r--r--dbaccess/source/core/recovery/settingsimport.cxx14
-rw-r--r--dbaccess/source/core/recovery/settingsimport.hxx10
2 files changed, 3 insertions, 21 deletions
diff --git a/dbaccess/source/core/recovery/settingsimport.cxx b/dbaccess/source/core/recovery/settingsimport.cxx
index fc5cdc6bafea..eda7eecd38d5 100644
--- a/dbaccess/source/core/recovery/settingsimport.cxx
+++ b/dbaccess/source/core/recovery/settingsimport.cxx
@@ -41,7 +41,6 @@ namespace dbaccess
// SettingsImport
SettingsImport::SettingsImport()
- :m_refCount( 0 )
{
}
@@ -49,19 +48,6 @@ namespace dbaccess
{
}
- oslInterlockedCount SAL_CALL SettingsImport::acquire()
- {
- return osl_atomic_increment( &m_refCount );
- }
-
- oslInterlockedCount SAL_CALL SettingsImport::release()
- {
- oslInterlockedCount newCount = osl_atomic_decrement( &m_refCount );
- if ( newCount == 0 )
- delete this;
- return newCount;
- }
-
void SettingsImport::startElement( const Reference< XAttributeList >& i_rAttributes )
{
// find the name of the setting
diff --git a/dbaccess/source/core/recovery/settingsimport.hxx b/dbaccess/source/core/recovery/settingsimport.hxx
index 8ea1c2d078d5..01089abb6241 100644
--- a/dbaccess/source/core/recovery/settingsimport.hxx
+++ b/dbaccess/source/core/recovery/settingsimport.hxx
@@ -25,6 +25,7 @@
#include <comphelper/namedvaluecollection.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
+#include <salhelper/simplereferenceobject.hxx>
namespace dbaccess
{
@@ -35,16 +36,12 @@ namespace dbaccess
It would be nice if the DocumentSettingsContext would not be that tightly interwoven with the SvXMLImport
class, so we could re-use it here ...
*/
- class SettingsImport : public ::rtl::IReference
+ class SettingsImport : public salhelper::SimpleReferenceObject
{
public:
SettingsImport();
- // IReference
- virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE;
- virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE;
-
- // own overriables
+ // own overridables
virtual ::rtl::Reference< SettingsImport > nextState(
const OUString& i_rElementName
) = 0;
@@ -66,7 +63,6 @@ namespace dbaccess
const OUStringBuffer& getAccumulatedCharacters() const { return m_aCharacters; }
private:
- oslInterlockedCount m_refCount;
// value of the config:name attribute, if any
OUString m_sItemName;
// value of the config:type attribute, if any