summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc_pivottable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/ucalc_pivottable.cxx')
-rw-r--r--sc/qa/unit/ucalc_pivottable.cxx4
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);