diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-26 15:09:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-26 17:34:35 +0100 |
commit | a7f50a30abd0ed51ca1fd053e1cc726558e00cb0 (patch) | |
tree | 7bcb5fcd2334eab48ee8d3d5fcbabd9ea001470b /sc | |
parent | 0288c8ffecff4956a52b9147d441979941e8b87f (diff) |
Use properly typed variable for iteration
Change-Id: Ifb81145c7238ef6b4916e0ef0984c9b868319aec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87451
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xlescher.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xlescher.cxx b/sc/source/filter/excel/xlescher.cxx index 45bcbbc753a8..8bbc1e397491 100644 --- a/sc/source/filter/excel/xlescher.cxx +++ b/sc/source/filter/excel/xlescher.cxx @@ -100,12 +100,12 @@ void lclGetRowFromY( long nTwipsY = static_cast< long >( nY / fScale + 0.5 ); long nRowH = 0; bool bFound = false; - for( SCROW nRow = static_cast< SCROW >( nXclStartRow ); static_cast<unsigned>(nRow) <= nXclMaxRow; ++nRow ) + for( sal_uInt32 nRow = nXclStartRow; nRow <= nXclMaxRow; ++nRow ) { nRowH = rDoc.GetRowHeight( nRow, nScTab ); if( rnStartH + nRowH > nTwipsY ) { - rnXclRow = static_cast< sal_uInt32 >( nRow ); + rnXclRow = nRow; bFound = true; break; } |