cid#1607478 Overflowed constant

aFormMap is std::pair<SwPosition, sal_uInt32> and GetTabIndex returns
sal_uInt32, so change nCurTabIndex to sal_uInt32 and continue use of
SAL_MAX_UINT32

Change-Id: Ie404e8b649f37f753f943f90a648114f080ed6b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173185
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-11 09:16:40 +01:00
parent 7cfff4751b
commit d0d45b3736

View file

@ -964,7 +964,7 @@ void SwCursorShell::GotoFormControl(bool bNext)
SwTextContentControl* pTCC = !pFieldMark ? CursorInsideContentControl() : nullptr;
auto pCC = pTCC ? pTCC->GetContentControl().GetContentControl() : nullptr;
const sal_Int32 nCurTabIndex = pCC && pCC->GetTabIndex() ? pCC->GetTabIndex() : SAL_MAX_UINT32;
const sal_uInt32 nCurTabIndex = pCC && pCC->GetTabIndex() ? pCC->GetTabIndex() : SAL_MAX_UINT32;
SwPosition nCurPos(*GetCursor()->GetPoint());
if (pFieldMark)