[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Tue Jun 5 19:21:19 UTC 2018
sc/source/ui/view/cellsh2.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 9bb6945e97acb4172a8186fbfdd5aa8a7ffbdae1
Author: Eike Rathke <erack at redhat.com>
Date: Tue Jun 5 21:19:53 2018 +0200
Remove superfluous temporary rExtendRange
... and rename temporary rCurrentRange to aCurrentRange.
Change-Id: I423d3c4ea018ec210cf4a59eb284cc6c5f2e8986
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 5c32f711004d..2236af146366 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -180,11 +180,10 @@ static bool lcl_GetSortParam( const ScViewData* pData, const ScSortParam& rSortP
(rSortParam.nRow1 == rSortParam.nRow2 && aExternalRange.aStart.Row() != aExternalRange.aEnd.Row())))
{
pTabViewShell->AddHighlightRange( aExternalRange,COL_LIGHTBLUE );
- ScRange rExtendRange( aExternalRange.aStart.Col(), aExternalRange.aStart.Row(), nTab, aExternalRange.aEnd.Col(), aExternalRange.aEnd.Row(), nTab );
- OUString aExtendStr(rExtendRange.Format(ScRefFlags::VALID, pDoc));
+ OUString aExtendStr( aExternalRange.Format(ScRefFlags::VALID, pDoc));
- ScRange rCurrentRange( rSortParam.nCol1, rSortParam.nRow1, nTab, rSortParam.nCol2, rSortParam.nRow2, nTab );
- OUString aCurrentStr(rCurrentRange.Format(ScRefFlags::VALID, pDoc));
+ ScRange aCurrentRange( rSortParam.nCol1, rSortParam.nRow1, nTab, rSortParam.nCol2, rSortParam.nRow2, nTab );
+ OUString aCurrentStr( aCurrentRange.Format(ScRefFlags::VALID, pDoc));
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
More information about the Libreoffice-commits
mailing list