summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-09-19 08:32:52 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-09-19 08:25:05 +0200
commit993695d75faa23776d6a664a214cc69546f1f8ae (patch)
treea6568eb7be1b3aff14d98fc1174b6ad7f14f3fe3 /accessibility
parentc6c1445fe8d16fe98f809c31612c2bdddde946da (diff)
OSL_ENSURE->assert where we would crash if not true
Change-Id: Ib6c2806070ae11b5542fcbba284f2640400bf984 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140131 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblemenubar.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index f87227dd4531..e22c8ce2ba5d 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -321,7 +321,7 @@ namespace accessibility
Reference< XAccessible > xParent;
if ( !xParent.is() )
{
- OSL_ENSURE( m_aEntryPath.size(), "AccessibleListBoxEntry::getAccessibleParent: invalid path!" );
+ assert( m_aEntryPath.size() ); // invalid path
if ( m_aEntryPath.size() == 1 )
{ // we're a top level entry
// -> our parent is the tree listbox itself
diff --git a/accessibility/source/standard/vclxaccessiblemenubar.cxx b/accessibility/source/standard/vclxaccessiblemenubar.cxx
index 13d1e1db62da..641d10336699 100644
--- a/accessibility/source/standard/vclxaccessiblemenubar.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenubar.cxx
@@ -66,7 +66,7 @@ bool VCLXAccessibleMenuBar::IsFocused()
IMPL_LINK( VCLXAccessibleMenuBar, WindowEventListener, VclWindowEvent&, rEvent, void )
{
- OSL_ENSURE( rEvent.GetWindow(), "VCLXAccessibleMenuBar::WindowEventListener: no window!" );
+ assert( rEvent.GetWindow() );
if ( !rEvent.GetWindow()->IsAccessibilityEventsSuppressed() || ( rEvent.GetId() == VclEventId::ObjectDying ) )
{
ProcessWindowEvent( rEvent );
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index c7b49af7de17..a91b7bb80f37 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -66,7 +66,7 @@ VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_In
m_bIndeterminate( false )
{
- OSL_ENSURE( m_pToolBox, "invalid toolbox" );
+ assert( m_pToolBox );
m_nItemId = m_pToolBox->GetItemId( m_nIndexInParent );
m_sOldName = GetText();
m_bIsChecked = m_pToolBox->IsItemChecked( m_nItemId );