sw/source/core/unocore/unoobj.cxx  |    2 +-
 sw/source/core/unocore/unoobj2.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 51fdc8eccda853878c26821c4ded027fb65a0022
Author:     Ashok <ashokemai...@yahoo.com>
AuthorDate: Fri Sep 20 14:48:24 2024 -0700
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Tue Sep 24 20:27:09 2024 +0200

    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.lauhakan...@libreoffice.org>

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())

Reply via email to