summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:03:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:30 +0100
commitbfe54489398881bfbe569aa4d2162655ffca6ff4 (patch)
tree9cd87b1f6cdae381e948c7f2a00624f1ad01d846 /accessibility
parentf96f38f8f8d711ca3606a6ab2bbebcf8d830ffa6 (diff)
bool improvements
Change-Id: I09ac60e907b7c0a78934dce05343e2ba2b6df49f
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx2
-rw-r--r--accessibility/inc/accessibility/helper/listboxhelper.hxx2
-rw-r--r--accessibility/source/extended/AccessibleGridControlTable.cxx2
-rw-r--r--accessibility/source/extended/accessiblelistbox.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx6
5 files changed, 7 insertions, 7 deletions
diff --git a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx
index a4a88e6c194a..59443696c46b 100644
--- a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx
+++ b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx
@@ -53,7 +53,7 @@ namespace accessibility
virtual bool IsEntryPosSelected( sal_uInt16 nPos ) const = 0;
virtual sal_uInt16 GetEntryCount() const = 0;
virtual void Select() = 0;
- virtual void SelectEntryPos( sal_uInt16 nPos, bool bSelect = sal_True ) = 0;
+ virtual void SelectEntryPos( sal_uInt16 nPos, bool bSelect = true ) = 0;
virtual sal_uInt16 GetSelectEntryCount() const = 0;
virtual void SetNoSelection() = 0;
virtual sal_uInt16 GetSelectEntryPos( sal_uInt16 nSelIndex = 0 ) const = 0;
diff --git a/accessibility/inc/accessibility/helper/listboxhelper.hxx b/accessibility/inc/accessibility/helper/listboxhelper.hxx
index f42bc266bba0..59a7bd6496ca 100644
--- a/accessibility/inc/accessibility/helper/listboxhelper.hxx
+++ b/accessibility/inc/accessibility/helper/listboxhelper.hxx
@@ -138,7 +138,7 @@ public:
m_aComboListBox.Select();
}
// -----------------------------------------------------------------------------
- virtual void SelectEntryPos( sal_uInt16 nPos, bool bSelect = sal_True )
+ virtual void SelectEntryPos( sal_uInt16 nPos, bool bSelect = true )
{
m_aComboListBox.SelectEntryPos(nPos,bSelect);
}
diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx
index 5b3174047dc5..6cef2283ea91 100644
--- a/accessibility/source/extended/AccessibleGridControlTable.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTable.cxx
@@ -257,7 +257,7 @@ void SAL_CALL AccessibleGridControlTable::selectAccessibleChild( sal_Int32 nChil
ensureIsValidIndex( nChildIndex );
sal_Int32 nColumns = m_aTable.GetColumnCount();
sal_Int32 nRow = (nChildIndex / nColumns);
- m_aTable.SelectRow( nRow, sal_True );
+ m_aTable.SelectRow( nRow, true );
}
sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleChildSelected( sal_Int32 nChildIndex )
throw ( lang::IndexOutOfBoundsException, uno::RuntimeException )
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx
index 87414ec9a388..eced1e545935 100644
--- a/accessibility/source/extended/accessiblelistbox.cxx
+++ b/accessibility/source/extended/accessiblelistbox.cxx
@@ -105,7 +105,7 @@ namespace accessibility
case VCLEVENT_LISTBOX_SELECT :
{
- OSL_ASSERT(0 && "Debug: Treelist shouldn't use VCLEVENT_LISTBOX_SELECT");
+ OSL_FAIL("Debug: Treelist shouldn't use VCLEVENT_LISTBOX_SELECT");
break;
}
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index cc0e5f791a36..debef709868e 100644
--- a/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -873,7 +873,7 @@ void SAL_CALL VCLXAccessibleList::selectAccessibleChild( sal_Int32 nChildIndex )
{
checkSelection_Impl(nChildIndex,*m_pListBoxHelper,sal_False);
- m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nChildIndex, sal_True );
+ m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nChildIndex, true );
// call the select handler, don't handle events in this time
m_bDisableProcessEvent = true;
m_pListBoxHelper->Select();
@@ -932,7 +932,7 @@ void SAL_CALL VCLXAccessibleList::selectAllAccessibleChildren( ) throw (Runtime
{
sal_uInt16 nCount = m_pListBoxHelper->GetEntryCount();
for ( sal_uInt16 i = 0; i < nCount; ++i )
- m_pListBoxHelper->SelectEntryPos( i, sal_True );
+ m_pListBoxHelper->SelectEntryPos( i, true );
// call the select handler, don't handle events in this time
m_bDisableProcessEvent = true;
m_pListBoxHelper->Select();
@@ -982,7 +982,7 @@ void SAL_CALL VCLXAccessibleList::deselectAccessibleChild( sal_Int32 nSelectedCh
{
checkSelection_Impl(nSelectedChildIndex,*m_pListBoxHelper,sal_False);
- m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nSelectedChildIndex, sal_False );
+ m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nSelectedChildIndex, false );
// call the select handler, don't handle events in this time
m_bDisableProcessEvent = true;
m_pListBoxHelper->Select();