summaryrefslogtreecommitdiff
path: root/framework/source/helper/oframes.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-18 14:44:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-18 15:27:07 +0100
commit503d893847fe8076340cf6a9de73a06892bc2660 (patch)
tree8867f050f170560cefcde2f546e117cd618db7ec /framework/source/helper/oframes.cxx
parent8030fe25724bd995a6902610614ba05ed6cfb643 (diff)
Use SolarMutexGuard directly
Change-Id: Id5ea9c7c7c3cb56d080daeb1e2e2c72483a37a4e
Diffstat (limited to 'framework/source/helper/oframes.cxx')
-rw-r--r--framework/source/helper/oframes.cxx25
1 files changed, 7 insertions, 18 deletions
diff --git a/framework/source/helper/oframes.cxx b/framework/source/helper/oframes.cxx
index d20904a58c8d..00652b6cd109 100644
--- a/framework/source/helper/oframes.cxx
+++ b/framework/source/helper/oframes.cxx
@@ -19,8 +19,6 @@
#include <helper/oframes.hxx>
-#include <threadhelp/guard.hxx>
-
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
@@ -42,10 +40,7 @@ using namespace ::std ;
OFrames::OFrames( const css::uno::Reference< XFrame >& xOwner ,
FrameContainer* pFrameContainer )
- // Init baseclasses first
- : ThreadHelpBase ( &Application::GetSolarMutex() )
- // Init member
- , m_xOwner ( xOwner )
+ : m_xOwner ( xOwner )
, m_pFrameContainer ( pFrameContainer )
, m_bRecursiveSearchProtection( sal_False )
{
@@ -67,8 +62,7 @@ OFrames::~OFrames()
// XFrames
void SAL_CALL OFrames::append( const css::uno::Reference< XFrame >& xFrame ) throw( RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
// Safe impossible cases
// Method is not defined for ALL incoming parameters!
@@ -92,8 +86,7 @@ void SAL_CALL OFrames::append( const css::uno::Reference< XFrame >& xFrame ) thr
// XFrames
void SAL_CALL OFrames::remove( const css::uno::Reference< XFrame >& xFrame ) throw( RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
// Safe impossible cases
// Method is not defined for ALL incoming parameters!
@@ -118,8 +111,7 @@ void SAL_CALL OFrames::remove( const css::uno::Reference< XFrame >& xFrame ) thr
// XFrames
Sequence< css::uno::Reference< XFrame > > SAL_CALL OFrames::queryFrames( sal_Int32 nSearchFlags ) throw( RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
// Safe impossible cases
// Method is not defined for ALL incoming parameters!
@@ -224,8 +216,7 @@ Sequence< css::uno::Reference< XFrame > > SAL_CALL OFrames::queryFrames( sal_Int
// XIndexAccess
sal_Int32 SAL_CALL OFrames::getCount() throw( RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
// Set default return value.
sal_Int32 nCount = 0;
@@ -250,8 +241,7 @@ Any SAL_CALL OFrames::getByIndex( sal_Int32 nIndex ) throw( IndexOutOfBoundsExce
WrappedTargetException ,
RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
sal_uInt32 nCount = m_pFrameContainer->getCount();
if ( nIndex < 0 || ( sal::static_int_cast< sal_uInt32 >( nIndex ) >= nCount ))
@@ -287,8 +277,7 @@ Type SAL_CALL OFrames::getElementType() throw( RuntimeException, std::exception
// XElementAccess
sal_Bool SAL_CALL OFrames::hasElements() throw( RuntimeException, std::exception )
{
- // Ready for multithreading
- Guard aGuard( m_aLock );
+ SolarMutexGuard g;
// Set default return value.
sal_Bool bHasElements = sal_False;