diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 11:39:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 17:32:28 +0200 |
commit | b6fa0c15af7ea06a71d65e03204376fce7766ee9 (patch) | |
tree | 48842739dd448d9c2820cae224c1f93e0ceb3ef6 | |
parent | 3734437acf96c888a8d6ddc8be1d022be3ab9a59 (diff) |
improve scoping
Change-Id: Ifb34ca678e019ded44af98b18a72f81206168b8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113672
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/filter/excel/impop.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index c1cf9a5edbdd..91a3605199ad 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -859,15 +859,12 @@ void ImportExcel::Shrfmla() void ImportExcel::Mulrk() { XclAddress aXclPos; - sal_uInt16 nXF; - sal_Int32 nRkNum; - aIn >> aXclPos; for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() > 2); ++aCurrXclPos.mnCol ) { - nXF = aIn.ReaduInt16(); - nRkNum = aIn.ReadInt32(); + sal_uInt16 nXF = aIn.ReaduInt16(); + sal_Int32 nRkNum = aIn.ReadInt32(); ScAddress aScPos( ScAddress::UNINITIALIZED ); if( GetAddressConverter().ConvertAddress( aScPos, aCurrXclPos, GetCurrScTab(), true ) ) @@ -881,13 +878,11 @@ void ImportExcel::Mulrk() void ImportExcel::Mulblank() { XclAddress aXclPos; - sal_uInt16 nXF; - aIn >> aXclPos; for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() > 2); ++aCurrXclPos.mnCol ) { - nXF = aIn.ReaduInt16(); + sal_uInt16 nXF = aIn.ReaduInt16(); ScAddress aScPos( ScAddress::UNINITIALIZED ); if( GetAddressConverter().ConvertAddress( aScPos, aCurrXclPos, GetCurrScTab(), true ) ) |