[Libreoffice-commits] core.git: sc/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jan 26 16:35:12 UTC 2020
sc/source/filter/excel/xlescher.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a7f50a30abd0ed51ca1fd053e1cc726558e00cb0
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jan 26 15:09:25 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Jan 26 17:34:35 2020 +0100
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 at redhat.com>
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;
}
More information about the Libreoffice-commits
mailing list