diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-07 08:36:40 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-08-07 11:01:01 +0300 |
commit | 13b9c0513319623fd56a5a0ead5bdddecf90a10f (patch) | |
tree | 0e20a62643c2c44023222bcc63b451c7c4b6947a /basctl/source/accessibility | |
parent | 67f688b97aa5afde455674dbe28297a89d817503 (diff) |
IDE: sal_Bool to bool
Convert all occurences of sal_Bool, sal_True and sal_False in basctl
to bool, true and false -- except in prototypes of virtual function
overrides. (The virtual functions that are internal to basctl can be
and was converted.) Note that since sal_Bool and bool are implicitly
convertible to each other, for functions that take a sal_Bool (by
value), true and false can be given too.
Change-Id: Ie44740fa87f89e9fedd913840ca2b38e95e6b957
Diffstat (limited to 'basctl/source/accessibility')
-rw-r--r-- | basctl/source/accessibility/accessibledialogcontrolshape.cxx | 14 | ||||
-rw-r--r-- | basctl/source/accessibility/accessibledialogwindow.cxx | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index 2546c100fe37..4b8f05d8304c 100644 --- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx +++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx @@ -76,14 +76,14 @@ AccessibleDialogControlShape::~AccessibleDialogControlShape() // ----------------------------------------------------------------------------- -sal_Bool AccessibleDialogControlShape::IsFocused() +bool AccessibleDialogControlShape::IsFocused() { - sal_Bool bFocused = sal_False; + bool bFocused = false; if ( m_pDialogWindow ) { SdrView* pSdrView = m_pDialogWindow->GetView(); if ( pSdrView && pSdrView->IsObjMarked( m_pDlgEdObj ) && pSdrView->GetMarkedObjectList().GetMarkCount() == 1 ) - bFocused = sal_True; + bFocused = true; } return bFocused; @@ -91,9 +91,9 @@ sal_Bool AccessibleDialogControlShape::IsFocused() // ----------------------------------------------------------------------------- -sal_Bool AccessibleDialogControlShape::IsSelected() +bool AccessibleDialogControlShape::IsSelected() { - sal_Bool bSelected = sal_False; + bool bSelected = false; if ( m_pDialogWindow ) { SdrView* pSdrView = m_pDialogWindow->GetView(); @@ -106,7 +106,7 @@ sal_Bool AccessibleDialogControlShape::IsSelected() // ----------------------------------------------------------------------------- -void AccessibleDialogControlShape::SetFocused( sal_Bool bFocused ) +void AccessibleDialogControlShape::SetFocused( bool bFocused ) { if ( m_bFocused != bFocused ) { @@ -122,7 +122,7 @@ void AccessibleDialogControlShape::SetFocused( sal_Bool bFocused ) // ----------------------------------------------------------------------------- -void AccessibleDialogControlShape::SetSelected( sal_Bool bSelected ) +void AccessibleDialogControlShape::SetSelected( bool bSelected ) { if ( m_bSelected != bSelected ) { diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx index 987dbc834798..7c40a3ffff5f 100644 --- a/basctl/source/accessibility/accessibledialogwindow.cxx +++ b/basctl/source/accessibility/accessibledialogwindow.cxx @@ -999,7 +999,7 @@ sal_Bool AccessibleDialogWindow::isAccessibleChildSelected( sal_Int32 nChildInde if ( nChildIndex < 0 || nChildIndex >= getAccessibleChildCount() ) throw IndexOutOfBoundsException(); - sal_Bool bSelected = sal_False; + bool bSelected = false; if ( m_pDialogWindow ) { DlgEdObj* pDlgEdObj = m_aAccessibleChildren[nChildIndex].pDlgEdObj; @@ -1101,7 +1101,7 @@ void AccessibleDialogWindow::deselectAccessibleChild( sal_Int32 nChildIndex ) th { SdrPageView* pPgView = pSdrView->GetSdrPageView(); if ( pPgView ) - pSdrView->MarkObj( pDlgEdObj, pPgView, sal_True ); + pSdrView->MarkObj( pDlgEdObj, pPgView, true ); } } } |