diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:02:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:27 +0100 |
commit | 2462159d7b49f0091727ea13ea733d1a8c436bf7 (patch) | |
tree | 53fbdd7e34241ed32340a197045c99afc3aeb4d6 /framework/source/helper | |
parent | 99e7071f2e35d87641274552d708bd521f50b0f6 (diff) |
bool improvements
Change-Id: I754b47013d8f1aa3ecf6204fbe926a438887639d
Diffstat (limited to 'framework/source/helper')
-rw-r--r-- | framework/source/helper/statusindicatorfactory.cxx | 2 | ||||
-rw-r--r-- | framework/source/helper/uiconfigelementwrapperbase.cxx | 18 | ||||
-rw-r--r-- | framework/source/helper/vclstatusindicator.cxx | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx index 61dc16df16df..1188c2062a11 100644 --- a/framework/source/helper/statusindicatorfactory.cxx +++ b/framework/source/helper/statusindicatorfactory.cxx @@ -398,7 +398,7 @@ void StatusIndicatorFactory::implts_makeParentVisibleIfAllowed() if ( pWindow ) { bool bForceFrontAndFocus(officecfg::Office::Common::View::NewDocumentHandling::ForceFocusAndToFront::get(xContext)); - pWindow->Show(sal_True, bForceFrontAndFocus ? SHOW_FOREGROUNDTASK : 0 ); + pWindow->Show(true, bForceFrontAndFocus ? SHOW_FOREGROUNDTASK : 0 ); } } diff --git a/framework/source/helper/uiconfigelementwrapperbase.cxx b/framework/source/helper/uiconfigelementwrapperbase.cxx index 4fff2ac9050b..df0ddf867276 100644 --- a/framework/source/helper/uiconfigelementwrapperbase.cxx +++ b/framework/source/helper/uiconfigelementwrapperbase.cxx @@ -64,12 +64,12 @@ UIConfigElementWrapperBase::UIConfigElementWrapperBase( sal_Int16 nType ) , ::cppu::OBroadcastHelperVar< ::cppu::OMultiTypeInterfaceContainerHelper, ::cppu::OMultiTypeInterfaceContainerHelper::keyType >( m_aLock.getShareableOslMutex() ) , ::cppu::OPropertySetHelper ( *(static_cast< ::cppu::OBroadcastHelper* >(this)) ) , m_nType ( nType ) - , m_bPersistent ( sal_True ) - , m_bInitialized ( sal_False ) - , m_bConfigListener ( sal_False ) - , m_bConfigListening ( sal_False ) - , m_bDisposed ( sal_False ) - , m_bNoClose ( sal_False ) + , m_bPersistent ( true ) + , m_bInitialized ( false ) + , m_bConfigListener ( false ) + , m_bConfigListening ( false ) + , m_bDisposed ( false ) + , m_bNoClose ( false ) , m_aListenerContainer ( m_aLock.getShareableOslMutex() ) { } @@ -142,7 +142,7 @@ throw ( Exception, RuntimeException ) } } - m_bInitialized = sal_True; + m_bInitialized = true; } } @@ -272,7 +272,7 @@ void SAL_CALL UIConfigElementWrapperBase::setFastPropertyValue_NoBroadcast( sa if ( xUIConfig.is() ) { xUIConfig->removeConfigurationListener( Reference< XUIConfigurationListener >( static_cast< OWeakObject* >( this ), UNO_QUERY )); - m_bConfigListening = sal_False; + m_bConfigListening = false; } } catch ( const Exception& ) @@ -290,7 +290,7 @@ void SAL_CALL UIConfigElementWrapperBase::setFastPropertyValue_NoBroadcast( sa if ( xUIConfig.is() ) { xUIConfig->addConfigurationListener( Reference< XUIConfigurationListener >( static_cast< OWeakObject* >( this ), UNO_QUERY )); - m_bConfigListening = sal_True; + m_bConfigListening = true; } } catch ( const Exception& ) diff --git a/framework/source/helper/vclstatusindicator.cxx b/framework/source/helper/vclstatusindicator.cxx index 077faf2d68e3..ad07ad8a2b7e 100644 --- a/framework/source/helper/vclstatusindicator.cxx +++ b/framework/source/helper/vclstatusindicator.cxx @@ -121,7 +121,7 @@ void SAL_CALL VCLStatusIndicator::end() if (m_pStatusBar) { m_pStatusBar->EndProgressMode(); - m_pStatusBar->Show(sal_False); + m_pStatusBar->Show(false); delete m_pStatusBar; m_pStatusBar = 0; |