summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAshok <ashokemailat@yahoo.com>2024-09-20 14:48:24 -0700
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-09-24 20:27:09 +0200
commit51fdc8eccda853878c26821c4ded027fb65a0022 (patch)
treeefe27154219f6ca61bc934031c1a85a9b65ca107 /sw/source
parentd5b76e32f99738301c253840ff089cfc830874dc (diff)
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>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/unocore/unoobj.cxx2
-rw-r--r--sw/source/core/unocore/unoobj2.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 7a6eaaef53b4..3f6dd5c46fb5 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -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;
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 400659d373e2..355897d692ba 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -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())