diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 21:32:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 08:22:32 +0100 |
commit | 1b1031a8f6aa3ed7eeb1516aac6c327b1fddea4b (patch) | |
tree | 2fbcc354c855c75d20fca5d23c5f045fa490d472 /sfx2/source/appl | |
parent | 3257e9a47a79678fc29d29166700e82d0ab7ab1c (diff) |
bool improvements
Change-Id: I5f90d0acff506955d1cc5a44944311012f3b04b9
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index acd9eebc1998..fbf0f5b799d3 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -691,7 +691,7 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_QUICKLAUNCHER), sal_True, &pItem)) { DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected"); - ShutdownIcon::SetAutostart( ( (const SfxBoolItem*)pItem )->GetValue() != sal_False ); + ShutdownIcon::SetAutostart( ( (const SfxBoolItem*)pItem )->GetValue() ); } // StarBasic Enable diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index a5f1fde1b7fc..f59ebfe70a71 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -100,7 +100,7 @@ void SAL_CALL SfxTerminateListener_Impl::queryTermination( const EventObject& ) void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& aEvent ) throw(RuntimeException ) { Reference< XDesktop > xDesktop( aEvent.Source, UNO_QUERY ); - if( xDesktop.is() == sal_True ) + if( xDesktop.is() ) xDesktop->removeTerminateListener( this ); SolarMutexGuard aGuard; diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 8c6d096093e3..5717f7aa2058 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -580,7 +580,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) TYPE(SfxBoolItem))); bool bShow = pItem == 0 ? !pAppData_Impl->m_xImeStatusWindow->isShowing() - : ( pItem->GetValue() == sal_True ); + : pItem->GetValue(); pAppData_Impl->m_xImeStatusWindow->show(bShow); if (pItem == 0) rReq.AppendItem(SfxBoolItem(SID_SHOW_IME_STATUS_WINDOW, |