diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:27:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:27:05 +0200 |
commit | 6f821ca4a1c07e79d8cdbfd84c08445ae4c5186a (patch) | |
tree | 61781292ab829c32b9d68632d88ebd97d70db6bc | |
parent | 1bab5c741940fe582bd5d142a5ef686c340c17e6 (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (chart2)
Change-Id: Id8699d6923f8c3e1133db5ef66a21d939b9c5668
-rw-r--r-- | chart2/qa/extras/chart2_trendcalculators.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/qa/extras/chart2_trendcalculators.cxx b/chart2/qa/extras/chart2_trendcalculators.cxx index 56cc6aa8c952..aa3717dd4fbe 100644 --- a/chart2/qa/extras/chart2_trendcalculators.cxx +++ b/chart2/qa/extras/chart2_trendcalculators.cxx @@ -168,7 +168,7 @@ void Chart2TrendCalculators::testPolynomialRegression1() xValues[i] = d; yValues[i] = - 2.0 * d * d + 4 * d - 5; } - OUString sExpectedFormula( "f(x) = "+ OUStringLiteral1(aMinusSign) +" 2x" + OUString( aSuperscriptFigures[2] ) + " + 4x "+ OUStringLiteral1(aMinusSign) +" 5" ); + OUString sExpectedFormula( "f(x) = "+ OUStringLiteral1(aMinusSign) +" 2x" + OUStringLiteral1( aSuperscriptFigures[2] ) + " + 4x "+ OUStringLiteral1(aMinusSign) +" 5" ); checkCalculator( xValues, yValues, sExpectedFormula ); } diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 7402bdf5b4ed..9336ea3a9732 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1286,7 +1286,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes( } if( bShowCorrCoeff ) { - aFormula.append( "R" + OUString( aSuperscriptFigures[2] ) + " = " ); + aFormula.append( "R" + OUStringLiteral1( aSuperscriptFigures[2] ) + " = " ); double fR( xRegressionCurveCalculator->getCorrelationCoefficient()); if( m_apNumberFormatterWrapper.get()) { |