summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-01-30 19:47:51 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-30 19:48:28 +0100
commitb0cc48440dc410d283525c0577a1175476b447a9 (patch)
treee613d40436b8d08d6fd2a2245aed761b559fd825 /chart2
parentcd13c045846bb2af4eefc46dc8f020f6073b6054 (diff)
chart2: try to make MSVC happy with OUString
Change-Id: I4c5a9572e897aa12aad3a8eb5797e4bca2f036cf
Diffstat (limited to 'chart2')
-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;