diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-06-16 21:06:37 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-06-17 07:08:00 +0200 |
commit | 0cea5d817434c5f7ccc8816f7f5e29a4ba95f8f0 (patch) | |
tree | 449ba6180f0ab408310908e414c0b586533e84af /sc | |
parent | 8a5beccc19b4fdffb7b82ba5fd26f4cf316d9811 (diff) |
Another "One call to XCellRangeAddressable::getRangeAddress() is enough"
See https://cgit.freedesktop.org/libreoffice/core/commit/?id=e44e418783d101c530c916db0b0f72c376188fdf
Change-Id: I1106d1777690c27b9e4765a3a94145bb73609005
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136005
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 99933f165c24..d94bd7b04a35 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -2657,11 +2657,8 @@ ScVbaRange::Resize( const uno::Any &RowSize, const uno::Any &ColumnSize ) xCursor->collapseToSize( nColumnSize, nRowSize ); uno::Reference< sheet::XCellRangeAddressable > xCellRangeAddressable(xCursor, ::uno::UNO_QUERY_THROW ); uno::Reference< table::XCellRange > xRange( xSheetRange->getSpreadsheet(), ::uno::UNO_QUERY_THROW ); - return new ScVbaRange( mxParent, mxContext,xRange->getCellRangeByPosition( - xCellRangeAddressable->getRangeAddress().StartColumn, - xCellRangeAddressable->getRangeAddress().StartRow, - xCellRangeAddressable->getRangeAddress().EndColumn, - xCellRangeAddressable->getRangeAddress().EndRow ) ); + const table::CellRangeAddress aRA( xCellRangeAddressable->getRangeAddress()); + return new ScVbaRange( mxParent, mxContext, xRange->getCellRangeByPosition( aRA.StartColumn, aRA.StartRow, aRA.EndColumn, aRA.EndRow)); } void |