diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:11:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:52 +0200 |
commit | 6eb7870aa10144281ccbc4702770d8ce1ceb3e9a (patch) | |
tree | a61b9bc4685c8fa4797a7b00660838937ec62e9a /sc/qa/unit/ucalc_pivottable.cxx | |
parent | 03516c505eced337149782a67b2ad98c246929b3 (diff) |
loplugin:stringadd in sc
Change-Id: Idab16f785ca5e8954f8e50132938f6329106c927
Reviewed-on: https://gerrit.libreoffice.org/79891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/unit/ucalc_pivottable.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_pivottable.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc_pivottable.cxx b/sc/qa/unit/ucalc_pivottable.cxx index 3d200f1d4b16..7c92556bb1e8 100644 --- a/sc/qa/unit/ucalc_pivottable.cxx +++ b/sc/qa/unit/ucalc_pivottable.cxx @@ -2111,9 +2111,7 @@ void Test::testFuncGETPIVOTDATA() sc::AutoCalcSwitch aSwitch(*m_pDoc, true); // turn autocalc on. // First, get the grand total. - OUString aFormula("=GETPIVOTDATA(\"Value\";"); - aFormula += aPivotPosStr; - aFormula += ")"; + OUString aFormula = "=GETPIVOTDATA(\"Value\";" + aPivotPosStr + ")"; m_pDoc->SetString(aPos, aFormula); double fVal = m_pDoc->GetValue(aPos); CPPUNIT_ASSERT_EQUAL(21.0, fVal); |