diff options
author | Bayram Çiçek <mail@bayramcicek.com.tr> | 2021-02-14 19:11:12 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-11 11:37:49 +0100 |
commit | a88effc4f53da8ae476f6a9f24b96e5948b17bee (patch) | |
tree | 1b5262a483b1c5daf09352b95563ecbf36820d9d /vcl | |
parent | c792cbf4f2d0d44279f273c4c6cba650601f1468 (diff) |
tdf#114441: Convert use of sal_uLong to better integer types
Change-Id: Ibb432c3db6d99343514c412c4c1b968808b733c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110886
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 4cae6f2ca758..3dd2b5979546 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1418,7 +1418,7 @@ tools::Rectangle ToolBox::GetCharacterBounds( sal_uInt16 nItemID, tools::Long nI ImplFillLayoutData(); if( mpData->m_pLayoutData ) { - for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineItemIds.size(); i++ ) + for( size_t i = 0; i < mpData->m_pLayoutData->m_aLineItemIds.size(); i++ ) { if( mpData->m_pLayoutData->m_aLineItemIds[i] == nItemID ) { @@ -1439,7 +1439,7 @@ tools::Long ToolBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rItemID if( mpData->m_pLayoutData ) { nIndex = mpData->m_pLayoutData->GetIndexForPoint( rPoint ); - for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineIndices.size(); i++ ) + for( size_t i = 0; i < mpData->m_pLayoutData->m_aLineIndices.size(); i++ ) { if( mpData->m_pLayoutData->m_aLineIndices[i] <= nIndex && (i == mpData->m_pLayoutData->m_aLineIndices.size()-1 || mpData->m_pLayoutData->m_aLineIndices[i+1] > nIndex) ) |