summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/sdr/overlay/overlaymanager.hxx8
-rw-r--r--svx/source/sdr/overlay/overlaymanager.cxx14
2 files changed, 2 insertions, 20 deletions
diff --git a/include/svx/sdr/overlay/overlaymanager.hxx b/include/svx/sdr/overlay/overlaymanager.hxx
index b5c7c7bbe585..fd7437a0509d 100644
--- a/include/svx/sdr/overlay/overlaymanager.hxx
+++ b/include/svx/sdr/overlay/overlaymanager.hxx
@@ -30,6 +30,7 @@
#include <svtools/optionsdrawinglayer.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
+#include <salhelper/simplereferenceobject.hxx>
// predeclarations
@@ -54,10 +55,8 @@ namespace sdr
class SVX_DLLPUBLIC OverlayManager
: private boost::noncopyable
, protected ::sdr::animation::Scheduler
- , public rtl::IReference
+ , public salhelper::SimpleReferenceObject
{
- private:
- oslInterlockedCount mnRefCount;
protected:
// the OutputDevice to work on, set on construction and not to be changed
OutputDevice& rmOutputDevice;
@@ -137,9 +136,6 @@ namespace sdr
const SvtOptionsDrawinglayer& getDrawinglayerOpt() const { return maDrawinglayerOpt; }
void InsertEvent(sdr::animation::Event* pNew) { Scheduler::InsertEvent(pNew); }
-
- virtual oslInterlockedCount SAL_CALL acquire() SAL_OVERRIDE;
- virtual oslInterlockedCount SAL_CALL release() SAL_OVERRIDE;
};
} // end of namespace overlay
} // end of namespace sdr
diff --git a/svx/source/sdr/overlay/overlaymanager.cxx b/svx/source/sdr/overlay/overlaymanager.cxx
index e2f2b2bfa625..f843d5ae3a7d 100644
--- a/svx/source/sdr/overlay/overlaymanager.cxx
+++ b/svx/source/sdr/overlay/overlaymanager.cxx
@@ -117,7 +117,6 @@ namespace sdr
OverlayManager::OverlayManager(OutputDevice& rOutputDevice)
: Scheduler(),
- mnRefCount(0),
rmOutputDevice(rOutputDevice),
maOverlayObjects(),
maStripeColorA(Color(COL_BLACK)),
@@ -362,19 +361,6 @@ namespace sdr
}
}
- oslInterlockedCount OverlayManager::acquire()
- {
- return osl_atomic_increment( &mnRefCount );
- }
-
- oslInterlockedCount OverlayManager::release()
- {
- oslInterlockedCount nCount( osl_atomic_decrement( &mnRefCount ) );
- if ( nCount == 0 )
- delete this;
- return nCount;
- }
-
} // end of namespace overlay
} // end of namespace sdr