summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uielement/buttontoolbarcontroller.cxx15
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx15
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx15
3 files changed, 12 insertions, 33 deletions
diff --git a/framework/source/uielement/buttontoolbarcontroller.cxx b/framework/source/uielement/buttontoolbarcontroller.cxx
index 4972b6da7667..d94e5b0ff25f 100644
--- a/framework/source/uielement/buttontoolbarcontroller.cxx
+++ b/framework/source/uielement/buttontoolbarcontroller.cxx
@@ -90,21 +90,14 @@ void SAL_CALL ButtonToolbarController::release() noexcept
void SAL_CALL ButtonToolbarController::initialize(
const css::uno::Sequence< css::uno::Any >& aArguments )
{
- bool bInitialized( true );
-
- {
- SolarMutexGuard aSolarMutexGuard;
-
- if ( m_bDisposed )
- throw DisposedException();
+ SolarMutexGuard aSolarMutexGuard;
- bInitialized = m_bInitialized;
- }
+ if ( m_bDisposed )
+ throw DisposedException();
- if ( bInitialized )
+ if ( m_bInitialized )
return;
- SolarMutexGuard aSolarMutexGuard;
m_bInitialized = true;
PropertyValue aPropValue;
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index 76387cbad0fd..6a8499a353c7 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -120,21 +120,14 @@ void SAL_CALL StatusbarController::release() noexcept
void SAL_CALL StatusbarController::initialize( const Sequence< Any >& aArguments )
{
- bool bInitialized( true );
-
- {
- SolarMutexGuard aSolarMutexGuard;
-
- if ( m_bDisposed )
- throw DisposedException();
+ SolarMutexGuard aSolarMutexGuard;
- bInitialized = m_bInitialized;
- }
+ if ( m_bDisposed )
+ throw DisposedException();
- if ( bInitialized )
+ if ( m_bInitialized )
return;
- SolarMutexGuard aSolarMutexGuard;
m_bInitialized = true;
PropertyValue aPropValue;
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 8fe4eb37c621..b592bb25b859 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -163,21 +163,14 @@ css::uno::Sequence<css::uno::Type> ToolboxController::getTypes()
void SAL_CALL ToolboxController::initialize( const Sequence< Any >& aArguments )
{
- bool bInitialized( true );
-
- {
- SolarMutexGuard aSolarMutexGuard;
-
- if ( m_bDisposed )
- throw DisposedException();
+ SolarMutexGuard aSolarMutexGuard;
- bInitialized = m_bInitialized;
- }
+ if ( m_bDisposed )
+ throw DisposedException();
- if ( bInitialized )
+ if ( m_bInitialized )
return;
- SolarMutexGuard aSolarMutexGuard;
m_bInitialized = true;
m_bSupportVisible = false;
PropertyValue aPropValue;