summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-28 11:12:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-28 21:48:16 +0100
commit2851dc3f5dc0f7a42f5938d9ff07c0b8a246b96e (patch)
tree8f4582d3f4fbced32120732b1c3512989c961943 /editeng
parente120409015296ad8386502d61273c03c58eda3ad (diff)
Remove useless check against SAL_MAX_INT32
...changed from a check against USHRT_MAX in 3cbfcee36dd16e451d76c561eaaaee0ff29b01a5 "xub_StrLen and tools/string.hxx final straw" Change-Id: I8311803f9b5d1a78d8039d4810b0ae3cfdd27c53 Reviewed-on: https://gerrit.libreoffice.org/48770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index c555deae0ab3..567e8f6d3b22 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -611,7 +611,7 @@ namespace accessibility
bool AccessibleEditableTextPara::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nIndex )
{
- DBG_ASSERT(nIndex >= 0 && nIndex <= SAL_MAX_INT32,
+ DBG_ASSERT(nIndex >= 0,
"AccessibleEditableTextPara::GetAttributeRun: index value overflow");
DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= SAL_MAX_INT32,