diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/StatisticsHelper.cxx | 6 |
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; |