diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-09 11:10:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-10 11:04:12 +0200 |
commit | e656d583e7fd9b7d2b1bbe2d8716e75ab2023c2c (patch) | |
tree | 091749d131944584e0150b49f72a5ae13301cea0 /svx | |
parent | 1dcef2a123fb54bfc1360c04f8e49783445c734c (diff) |
use SimpleReferenceObject in sdr::overlay::OverlayManager
to replace hand-rolled version
Change-Id: I3f47bf686ac07bba03acacace817767f2845af4f
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/overlay/overlaymanager.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
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 |