diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:57:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:24:40 +0100 |
commit | c35616dd73c8b05e422f3b561f21e21f5489d574 (patch) | |
tree | 975aab3fbaecae0803be0783b25a0f89684dcc95 /sfx2/source/control | |
parent | f0dc6cda7580a2e070d3ad550fb4cd8577179203 (diff) |
bool improvements
Change-Id: I4a09bffccc0049d81ea3113e79184f64b026a4ba
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 51bebd48170e..0a007471dda1 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -456,7 +456,7 @@ void SfxBindings::InvalidateSlotsInMap_Impl() void SfxBindings::AddSlotToInvalidateSlotsMap_Impl( sal_uInt16 nId ) { - pImp->m_aInvalidateSlots[nId] = sal_True; + pImp->m_aInvalidateSlots[nId] = true; } //-------------------------------------------------------------------- @@ -1267,7 +1267,7 @@ void SfxBindings::Execute_Impl( SfxRequest& aReq, const SfxSlot* pSlot, SfxShell if ( pNewItem->ISA(SfxBoolItem) ) { // we can toggle Bools - ((SfxBoolItem*)pNewItem)->SetValue( sal_True ); + ((SfxBoolItem*)pNewItem)->SetValue( true ); aReq.AppendItem( *pNewItem ); } else if ( pNewItem->ISA(SfxEnumItemInterface) && diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 308c91dda645..830397cb696d 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -777,7 +777,7 @@ void SfxDispatcher::DoActivate_Impl( sal_Bool bMDI, SfxViewFrame* /* pOld */ ) SfxBindings *pBind = GetBindings(); while ( pBind ) { - pBind->HidePopupCtrls_Impl( sal_False ); + pBind->HidePopupCtrls_Impl( false ); pBind = pBind->GetSubBindings_Impl(); } @@ -871,7 +871,7 @@ void SfxDispatcher::DoDeactivate_Impl( sal_Bool bMDI, SfxViewFrame* pNew ) SfxBindings *pBind = GetBindings(); while ( pBind ) { - pBind->HidePopupCtrls_Impl( sal_True ); + pBind->HidePopupCtrls_Impl( true ); pBind = pBind->GetSubBindings_Impl(); } @@ -1492,7 +1492,7 @@ void SfxDispatcher::_Update_Impl( sal_Bool bUIActive, sal_Bool bIsMDIApp, sal_Bo { sal_Bool bViewerTbx = SFX_VISIBILITY_VIEWER == ( nPos & SFX_VISIBILITY_VIEWER ); SfxObjectShell* pSh = pImp->pFrame->GetObjectShell(); - SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pItem, SfxBoolItem, SID_VIEWONLY, sal_False ); + SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pItem, SfxBoolItem, SID_VIEWONLY, false ); sal_Bool bIsViewer = pItem && pItem->GetValue(); if ( bIsViewer != bViewerTbx ) continue; @@ -1665,7 +1665,7 @@ void SfxDispatcher::FlushImpl() bFound = (pPopped == i->pCluster); // Mark the moved Shell - aToDoCopy.push_front(SfxToDo_Impl(sal_False, i->bDelete, sal_False, *pPopped)); + aToDoCopy.push_front(SfxToDo_Impl(false, i->bDelete, false, *pPopped)); } while(i->bUntil && !bFound); DBG_ASSERT( bFound, "wrong SfxShell popped" ); |