diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-01-30 19:47:51 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-30 19:48:28 +0100 |
commit | b0cc48440dc410d283525c0577a1175476b447a9 (patch) | |
tree | e613d40436b8d08d6fd2a2245aed761b559fd825 /chart2 | |
parent | unfriend this class and the method (diff) | |
download | core-b0cc48440dc410d283525c0577a1175476b447a9.tar.gz core-b0cc48440dc410d283525c0577a1175476b447a9.zip |
chart2: try to make MSVC happy with OUString
Change-Id: I4c5a9572e897aa12aad3a8eb5797e4bca2f036cf
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; |