summaryrefslogtreecommitdiff
path: root/chart2/source/tools/StatisticsHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/StatisticsHelper.cxx')
-rw-r--r--chart2/source/tools/StatisticsHelper.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/chart2/source/tools/StatisticsHelper.cxx b/chart2/source/tools/StatisticsHelper.cxx
index a955a97bb7bf..81f47e0c2da9 100644
--- a/chart2/source/tools/StatisticsHelper.cxx
+++ b/chart2/source/tools/StatisticsHelper.cxx
@@ -308,7 +308,8 @@ Reference< beans::XPropertySet > StatisticsHelper::addErrorBars(
if( !xSeriesProp.is())
return xErrorBar;
- const OUString aPropName( bYError ? "ErrorBarY" : "ErrorBarX");
+ const OUString aPropName(
+ (bYError) ? OUString("ErrorBarY") : OUString("ErrorBarX"));
if( !( xSeriesProp->getPropertyValue( aPropName ) >>= xErrorBar ) ||
!xErrorBar.is())
{
@@ -332,7 +333,8 @@ Reference< beans::XPropertySet > StatisticsHelper::getErrorBars(
{
Reference< beans::XPropertySet > xSeriesProp( xDataSeries, uno::UNO_QUERY );
Reference< beans::XPropertySet > xErrorBar;
- const OUString aPropName( bYError ? "ErrorBarY" : "ErrorBarX");
+ const OUString aPropName(
+ (bYError) ? OUString("ErrorBarY") : OUString("ErrorBarX"));
if ( xSeriesProp.is())
xSeriesProp->getPropertyValue( aPropName ) >>= xErrorBar;