diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 09:11:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:50 +0200 |
commit | 236d6cd67e5024ecbe9baccc8f1db597bea4bfa9 (patch) | |
tree | 7e86af6300c5692150621cddcca2a7bb6ae7ef09 /chart2/qa | |
parent | 6319265b13321d6bfb527c7bd5b910d4dce4f203 (diff) |
chart2: prefer passing OUString by reference
Change-Id: I685b1dc3d7c735bc70be29252f55c082546f3cb1
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 3189a227a77f..5a57ea44bbb8 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -277,7 +277,7 @@ void checkCommonTrendline( CPPUNIT_ASSERT_EQUAL(aExpectedR2, aShowCorrelationCoefficient); } -void checkNameAndType(Reference<XPropertySet> xProperties, OUString aExpectedName, OUString aExpectedServiceName) +void checkNameAndType(Reference<XPropertySet> xProperties, const OUString& aExpectedName, const OUString& aExpectedServiceName) { Reference< lang::XServiceName > xServiceName( xProperties, UNO_QUERY ); CPPUNIT_ASSERT(xServiceName.is()); @@ -291,7 +291,7 @@ void checkNameAndType(Reference<XPropertySet> xProperties, OUString aExpectedNam } void checkLinearTrendline( - Reference<chart2::XRegressionCurve> xCurve, OUString aExpectedName, + Reference<chart2::XRegressionCurve> xCurve, const OUString& aExpectedName, double aExpectedExtrapolateForward, double aExpectedExtrapolateBackward, sal_Bool aExpectedForceIntercept, double aExpectedInterceptValue, sal_Bool aExpectedShowEquation, sal_Bool aExpectedR2) @@ -309,7 +309,7 @@ void checkLinearTrendline( } void checkPolynomialTrendline( - Reference<chart2::XRegressionCurve> xCurve, OUString aExpectedName, + Reference<chart2::XRegressionCurve> xCurve, const OUString& aExpectedName, sal_Int32 aExpectedDegree, double aExpectedExtrapolateForward, double aExpectedExtrapolateBackward, sal_Bool aExpectedForceIntercept, double aExpectedInterceptValue, @@ -332,7 +332,7 @@ void checkPolynomialTrendline( } void checkMovingAverageTrendline( - Reference<chart2::XRegressionCurve> xCurve, OUString aExpectedName, sal_Int32 aExpectedPeriod) + Reference<chart2::XRegressionCurve> xCurve, const OUString& aExpectedName, sal_Int32 aExpectedPeriod) { Reference<XPropertySet> xProperties( xCurve , uno::UNO_QUERY ); CPPUNIT_ASSERT(xProperties.is()); |