diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-22 17:54:42 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-23 08:06:38 +0200 |
commit | f063aac5143f14226f3e909c3d0a87e040d03538 (patch) | |
tree | 1bfdd64570f22db16fba73e1ae8bb2b8177b4924 /editeng | |
parent | 7f64148507a360825e9c28ddb7077996df9fa092 (diff) |
editeng a11y: Switch DBG_ASSERT to real assert
All current callers check the index before calling
`AccessibleParaManager::IsReferencable`.
Change-Id: If585e11eba3c48037b65439e8b95cb8d27bd4ffe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166465
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleParaManager.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx index c88f82d67709..aae8c5817f36 100644 --- a/editeng/source/accessibility/AccessibleParaManager.cxx +++ b/editeng/source/accessibility/AccessibleParaManager.cxx @@ -17,10 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <cassert> // Global header - - #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Reference.hxx> #include <o3tl/safeint.hxx> @@ -29,10 +28,7 @@ #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> - // Project-local header - - #include <editeng/AccessibleParaManager.hxx> #include <editeng/AccessibleEditableTextPara.hxx> @@ -116,8 +112,8 @@ namespace accessibility bool AccessibleParaManager::IsReferencable( sal_Int32 nChild ) const { - DBG_ASSERT( 0 <= nChild && maChildren.size() > o3tl::make_unsigned(nChild), - "AccessibleParaManager::IsReferencable: invalid index" ); + assert(0 <= nChild && maChildren.size() > o3tl::make_unsigned(nChild) + && "AccessibleParaManager::IsReferencable: invalid index"); if( 0 <= nChild && maChildren.size() > o3tl::make_unsigned(nChild) ) { |