diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-07 09:15:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-07 13:53:50 +0200 |
commit | 74fdda0cd41d97b6c97d2115584ee48fd552514e (patch) | |
tree | fa29308f180abbd7dec4c16f5603604a15fa079e /sfx2/source/appl/imestatuswindow.cxx | |
parent | basic: sal_Bool->bool (diff) | |
download | core-74fdda0cd41d97b6c97d2115584ee48fd552514e.tar.gz core-74fdda0cd41d97b6c97d2115584ee48fd552514e.zip |
sfx2: sal_Bool->bool
Change-Id: I48ae51781f64e60deb0c03352087100729c8c3cd
Diffstat (limited to 'sfx2/source/appl/imestatuswindow.cxx')
-rw-r--r-- | sfx2/source/appl/imestatuswindow.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sfx2/source/appl/imestatuswindow.cxx b/sfx2/source/appl/imestatuswindow.cxx index e3e60fe88161..d38b69000484 100644 --- a/sfx2/source/appl/imestatuswindow.cxx +++ b/sfx2/source/appl/imestatuswindow.cxx @@ -93,11 +93,8 @@ void ImeStatusWindow::init() if (Application::CanToggleImeStatusWindow()) try { - sal_Bool bShow = sal_Bool(); - if (getConfig()->getPropertyValue( - OUString( - "ShowStatusWindow")) - >>= bShow) + bool bShow; + if (getConfig()->getPropertyValue(OUString("ShowStatusWindow")) >>= bShow) Application::ShowImeStatusWindow(bShow); } catch (css::uno::Exception &) @@ -112,10 +109,8 @@ bool ImeStatusWindow::isShowing() { try { - sal_Bool bShow = sal_Bool(); - if (getConfig()->getPropertyValue( - OUString("ShowStatusWindow")) - >>= bShow) + bool bShow; + if (getConfig()->getPropertyValue(OUString("ShowStatusWindow")) >>= bShow) return bShow; } catch (css::uno::Exception &) @@ -134,7 +129,7 @@ void ImeStatusWindow::show(bool bShow) css::uno::Reference< css::beans::XPropertySet > xConfig(getConfig()); xConfig->setPropertyValue( OUString("ShowStatusWindow"), - css::uno::makeAny(static_cast< sal_Bool >(bShow))); + css::uno::makeAny(bShow)); css::uno::Reference< css::util::XChangesBatch > xCommit( xConfig, css::uno::UNO_QUERY); // Degrade gracefully by not saving the settings permanently: |