diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-05 11:53:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-10 17:11:00 +0100 |
commit | 242320d303d43a34ce2255a07783fbd51e253cd0 (patch) | |
tree | 14bd7757a57784a18d1aa2b731eb71999d14bf94 /sc | |
parent | 8523fb2b37a2cdd2c3743795bb33cf30a57c5385 (diff) |
new loplugin:reducevarscope
Change-Id: Iefe922c2e0d605114d54673d63eccc5e4abd545d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102143
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_sort.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index 64acbcc1eab0..829fa82b56e0 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -41,7 +41,6 @@ void Test::testSort() // We need a drawing layer in order to create caption objects. m_pDoc->InitDrawLayer(&getDocShell()); - ScRange aDataRange; ScAddress aPos(0,0,0); { const char* aData[][2] = { @@ -52,7 +51,7 @@ void Test::testSort() }; clearRange(m_pDoc, ScRange(0, 0, 0, 1, SAL_N_ELEMENTS(aData), 0)); - aDataRange = insertRangeData(m_pDoc, aPos, aData, SAL_N_ELEMENTS(aData)); + ScRange aDataRange = insertRangeData(m_pDoc, aPos, aData, SAL_N_ELEMENTS(aData)); CPPUNIT_ASSERT_EQUAL_MESSAGE("failed to insert range data at correct position", aPos, aDataRange.aStart); } @@ -80,6 +79,7 @@ void Test::testSort() pNote = m_pDoc->GetNote(1, 0, 0); CPPUNIT_ASSERT(pNote); + ScRange aDataRange; clearRange(m_pDoc, ScRange(0, 0, 0, 1, 9, 0)); // Clear A1:B10. { // 0 = empty cell |