diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-20 08:42:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-20 09:58:20 +0100 |
commit | 4bceda79065e91d6410d05931bff0324a9cbc321 (patch) | |
tree | a8d26483faadee1617738cebcdff503e63e94a40 /ucb/source | |
parent | 71088fb7c7b8e0af37919fc53223203d8a560842 (diff) |
Split independent loop vars, giving them appropriate types
...and thus avoiding an unnecessary explicit cast from sal_IntPtr to
(potentially smaller) sal_uInt32
Change-Id: Id05769c1db1cd272c8c193361c8f39f01dbec948
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87050
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/sorter/sortresult.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx index 8d8334cff393..1a6c65619a1c 100644 --- a/ucb/source/sorter/sortresult.cxx +++ b/ucb/source/sorter/sortresult.cxx @@ -1377,7 +1377,6 @@ void SortedResultSet::InsertNew( sal_IntPtr nPos, sal_IntPtr nCount ) void SortedResultSet::Remove( sal_IntPtr nPos, sal_IntPtr nCount, EventList *pEvents ) { - sal_uInt32 i; sal_IntPtr nOldLastSort; // correct mnLastSort first @@ -1392,7 +1391,7 @@ void SortedResultSet::Remove( sal_IntPtr nPos, sal_IntPtr nCount, EventList *pEv // remove the entries from the lists and correct the positions // in the original2sorted list - for ( i=0; i < static_cast<sal_uInt32>(nCount); i++ ) + for ( sal_IntPtr i=0; i < nCount; i++ ) { sal_IntPtr nSortPos = m_O2S[nPos]; m_O2S.erase(m_O2S.begin() + nPos); @@ -1417,7 +1416,7 @@ void SortedResultSet::Remove( sal_IntPtr nPos, sal_IntPtr nCount, EventList *pEv } // correct the positions in the sorted list - for ( i=1; i<= maS2O.Count(); i++ ) + for ( sal_uInt32 i=1; i<= maS2O.Count(); i++ ) { SortListData *pData = maS2O.GetData( i ); if ( pData->mnCurPos > nPos ) |