ucb/source/sorter/sortresult.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8120172f8f628efe1011bd777a20aa3f814ee38b
Author:     siddhi <[email protected]>
AuthorDate: Mon Oct 20 09:55:19 2025 +0530
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Mon Oct 20 08:22:37 2025 +0200

    tdf#75280 Convert inappropriate use of sal_IntPtr to better integer
    
    types
    
    In sortresult.cxx, the data type of loop counter i in Remove & SetChanged
    methods seems incorrect. Change to sal_Int32 which aligns with nCount.
    
    Change-Id: Iba61b8fda5ce9d11edd59e4f192723712fd42b4c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192676
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins

diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index e8019e3e5cb1..c729de5792d0 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -1335,7 +1335,7 @@ void SortedResultSet::Remove( sal_Int32 nPos, sal_Int32 
nCount, EventList *pEven
 
     // remove the entries from the lists and correct the positions
     // in the original2sorted list
-    for ( sal_IntPtr i=0; i < nCount; i++ )
+    for ( sal_Int32 i=0; i < nCount; i++ )
     {
         sal_IntPtr nSortPos = m_O2S[nPos];
         m_O2S.erase(m_O2S.begin() + nPos);
@@ -1500,7 +1500,7 @@ void SortedResultSet::BuildSortInfo(
 
 void SortedResultSet::SetChanged( sal_Int32 nPos, sal_Int32 nCount )
 {
-    for ( sal_IntPtr i=0; i<nCount; i++ )
+    for ( sal_Int32 i=0; i<nCount; i++ )
     {
         sal_IntPtr const nSortPos = m_O2S[nPos];
         if ( nSortPos < mnLastSort )

Reply via email to