Kaydet (Commit) 6fd20e01 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove redundant checks

...that date back to a909acb7 "#98735#
Refactored unoedit/unoedacc.cxx", before SvxTextForwarder::GetParaBounds was
changed from sal_uInt16 to sal_Int32 with
2af1f569 "resolved fdo#35756 import more than
64k HTML table cells"

Change-Id: Ia92dcf1fb6742779e5fd51ed3ba8f0db565f8965
Reviewed-on: https://gerrit.libreoffice.org/48715Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 8ff90e5d
......@@ -21,7 +21,6 @@
// Global header
#include <limits.h>
#include <memory>
#include <utility>
#include <algorithm>
......@@ -782,7 +781,7 @@ namespace accessibility
for( nCurrPara=0; nCurrPara<nParas; ++nCurrPara )
{
DBG_ASSERT(nCurrPara >= 0 && nCurrPara <= USHRT_MAX,
DBG_ASSERT(nCurrPara >= 0,
"AccessibleTextHelper_Impl::UpdateVisibleChildren: index value overflow");
aTmpBB = rCacheTF.GetParaBounds( nCurrPara );
......@@ -1577,7 +1576,7 @@ namespace accessibility
sal_Int32 nChild;
for( nChild=mnFirstVisibleChild; nChild <= mnLastVisibleChild; ++nChild )
{
DBG_ASSERT(nChild >= 0 && nChild <= USHRT_MAX,
DBG_ASSERT(nChild >= 0,
"AccessibleTextHelper_Impl::getAccessibleAt: index value overflow");
tools::Rectangle aParaBounds( rCacheTF.GetParaBounds( nChild ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment