tdf#114441 Use sal_int32 instead of sal_uLong

Changed data type from sal_uLong to sal_Int32.
The constant value is fixed at 1000.

Change-Id: Iddc0aafb252ca44feb8ae018de18296b8b46769b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173753
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
Ashok
2024-09-20 14:48:24 -07:00
committed by Ilmari Lauhakangas
parent d5b76e32f9
commit 51fdc8eccd
2 changed files with 2 additions and 2 deletions

View File

@@ -636,7 +636,7 @@ SwUnoCursorHelper::SetCursorPropertyValue(
SwFormatColl *
SwUnoCursorHelper::GetCurTextFormatColl(SwPaM & rPaM, const bool bConditional)
{
static const sal_uLong nMaxLookup = 1000;
static constexpr sal_Int32 nMaxLookup = 1000;
SwFormatColl *pFormat = nullptr;
bool bError = false;
SwPaM *pTmpCursor = &rPaM;

View File

@@ -307,7 +307,7 @@ void SwUnoCursorHelper::SetCursorAttr(SwPaM & rPam,
void SwUnoCursorHelper::GetCursorAttr(SwPaM & rPam,
SfxItemSet & rSet, const bool bOnlyTextAttr, const bool bGetFromChrFormat)
{
static const sal_uLong nMaxLookup = 1000;
static constexpr sal_Int32 nMaxLookup = 1000;
SfxItemSet aSet( *rSet.GetPool(), rSet.GetRanges() );
SfxItemSet *pSet = &rSet;
for(SwPaM& rCurrent : rPam.GetRingContainer())