From 955ebe83a8e57a776044b7f7749b4701ba82b8f4 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 29 Jun 2013 16:15:08 +0200 Subject: String to OUString and cleanup Change-Id: Idc18c1a6a64edea3399c8747ec0f096a2f964b68 --- chart2/source/controller/main/ChartDropTargetHelper.cxx | 2 +- chart2/source/view/charttypes/VSeriesPlotter.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/main/ChartDropTargetHelper.cxx b/chart2/source/controller/main/ChartDropTargetHelper.cxx index e09c298ddfa0..c15b9d2b6014 100644 --- a/chart2/source/controller/main/ChartDropTargetHelper.cxx +++ b/chart2/source/controller/main/ChartDropTargetHelper.cxx @@ -152,7 +152,7 @@ sal_Int8 ChartDropTargetHelper::ExecuteDrop( const ExecuteDropEvent& rEvt ) { // @todo: using implcit knowledge that ranges can be // merged with ";". This should be done more general - pCellRange->Value <<= (aOldRange + OUString( sal_Unicode(';')) + aRangeString ); + pCellRange->Value <<= (aOldRange + ";" + aRangeString ); } // move means replace range else diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index d9041f9503db..194a06defb51 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -477,7 +477,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re } //prepare text OUStringBuffer aText; - OUString aSeparator(sal_Unicode(' ')); + OUString aSeparator(" "); double fRotationDegrees = 0.0; try { @@ -1080,7 +1080,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes( bool bShowEquation = false; bool bShowCorrCoeff = false; - OUString aSep( sal_Unicode('\n')); + OUString aSep( "\n" ); if(( xEquationProperties->getPropertyValue( "ShowEquation") >>= bShowEquation ) && ( xEquationProperties->getPropertyValue( "ShowCorrelationCoefficient") >>= bShowCorrCoeff )) { @@ -1111,7 +1111,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes( } if( bShowCorrCoeff ) { - aFormula.append( sal_Unicode( 'R' )); + aFormula.append( "R" ); aFormula.append( sal_Unicode( 0x00b2 )); aFormula.append( " = "); double fR( xRegressionCurveCalculator->getCorrelationCoefficient()); -- cgit