sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 579f3d91c98cc35961538628c772e74b2f7df85a Author: Michael Weghorn <[email protected]> AuthorDate: Mon Mar 28 15:31:07 2022 +0200 Commit: Michael Weghorn <[email protected]> CommitDate: Tue Mar 29 06:51:28 2022 +0200 sc a11y: OSL_ENSURE -> assert Change-Id: I79f477c950e0aca75e2a6041c5fb6a78be4b07c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132219 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 8abbe1f7b967..1f6d899c9db5 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -424,7 +424,7 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ScRange aRange(pRefHint->GetRange()); if ((nX < 0) || (nY < 0)) { - OSL_ENSURE(!((nX < 0) && (nY < 0)), "should not be possible to remove row and column at the same time"); + assert(!((nX < 0) && (nY < 0)) && "should not be possible to remove row and column at the same time"); nId = AccessibleTableModelChangeType::DELETE; if (nX < 0) { @@ -439,13 +439,13 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint } else if ((nX > 0) || (nY > 0)) { - OSL_ENSURE(!((nX > 0) && (nY > 0)), "should not be possible to add row and column at the same time"); + assert(!((nX > 0) && (nY > 0)) && "should not be possible to add row and column at the same time"); nId = AccessibleTableModelChangeType::INSERT; nX = aRange.aEnd.Col() - aRange.aStart.Col(); } else { - OSL_FAIL("is it a deletion or an insertion?"); + assert(false && "is it a deletion or an insertion?"); } CommitTableModelChange(pRefHint->GetRange().aStart.Row(),
