diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-11 19:34:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-12 07:25:57 +0100 |
commit | 22a9cfbc9cc9577b08493828f3192262f76e7ac9 (patch) | |
tree | a4ce93e21453327a18f6a10142de7bb812f92972 /sc/qa/unit/ucalc_sparkline.cxx | |
parent | 554861a3e25c047f3b44e8154f80456985c83402 (diff) |
loplugin:reftotemp in sc
Change-Id: Ibd0efec208447d0ad3f5d85354cbfc7d276064af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176420
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/unit/ucalc_sparkline.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_sparkline.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_sparkline.cxx b/sc/qa/unit/ucalc_sparkline.cxx index bb423067b699..4d1a8a124bb0 100644 --- a/sc/qa/unit/ucalc_sparkline.cxx +++ b/sc/qa/unit/ucalc_sparkline.cxx @@ -74,7 +74,7 @@ CPPUNIT_TEST_FIXTURE(SparklineTest, testAddSparkline) CPPUNIT_ASSERT_EQUAL(size_t(1), pList->getSparklineGroups().size()); - auto const& aSparklineVector = pList->getSparklinesFor(pGetSparkline->getSparklineGroup()); + auto const aSparklineVector = pList->getSparklinesFor(pGetSparkline->getSparklineGroup()); CPPUNIT_ASSERT_EQUAL(size_t(1), aSparklineVector.size()); CPPUNIT_ASSERT_EQUAL(aSparklineVector[0].get(), pSparkline); @@ -336,7 +336,7 @@ CPPUNIT_TEST_FIXTURE(SparklineTest, testUndoRedoDeleteSparklineGroup) CPPUNIT_ASSERT_EQUAL(true, m_pDoc->HasSparkline(ScAddress(3, 6, 0))); // D7 // Check if the sparkline has the input range set - auto const& pSparkline = m_pDoc->GetSparkline(ScAddress(3, 6, 0)); + auto const pSparkline = m_pDoc->GetSparkline(ScAddress(3, 6, 0)); ScRangeList rRangeList = pSparkline->getInputRange(); CPPUNIT_ASSERT_EQUAL(size_t(1), rRangeList.size()); CPPUNIT_ASSERT_EQUAL(ScRange(3, 0, 0, 3, 5, 0), rRangeList[0]); |