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