sc/source/ui/app/inputhdl.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 4842a9e1dc4e49db3f9f495e6d9bb91ec19fac4b
Author:     Simon Chenery <[email protected]>
AuthorDate: Sun Nov 16 22:30:46 2025 +0100
Commit:     Hossein <[email protected]>
CommitDate: Wed Nov 26 22:15:41 2025 +0100

    tdf#145614 Convert #define RANGEFIND_MAX to constexpr
    
    Change-Id: I7c1063a6f17852c70c9d6557f90a04b626b321fe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194080
    Tested-by: Jenkins
    Code-Style: Hossein <[email protected]>
    Reviewed-by: Hossein <[email protected]>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index ba1679b9a7e1..3c9ad6d65f13 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -96,9 +96,6 @@
 #include <output.hxx>
 #include <fillinfo.hxx>
 
-// Maximum Ranges in RangeFinder
-#define RANGEFIND_MAX   128
-
 using namespace formula;
 
 namespace {
@@ -384,6 +381,8 @@ void ScInputHandler::InitRangeFinder( const OUString& 
rFormula )
     sal_Int32 nStart = 0;
     ESelection aSel;
     sal_uInt16 nCount = 0;
+    // Maximum Ranges in RangeFinder
+    constexpr sal_uInt16 RANGEFIND_MAX = 128;
     ScRange aRange;
     while ( nPos < nLen && nCount < RANGEFIND_MAX )
     {

Reply via email to