[Libreoffice-commits] .: chart2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 30 08:40:44 PST 2013


 chart2/source/view/charttypes/VSeriesPlotter.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 0bfa66cdf21fed70828e778c99161bc9005d0457
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Jan 30 17:40:04 2013 +0100

    MSVC needs explicit OUString in ?:
    
    Change-Id: I9b7db931ea9bd31824bd27f528c2b6214e80924b

diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 3caa660..d32638c 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -642,8 +642,8 @@ double lcl_getErrorBarLogicLength(
             {
                 double fPercent = 0;
                 if( xProp->getPropertyValue( bPositive
-                                             ? "PositiveError"
-                                             : "NegativeError") >>= fPercent )
+                                             ? OUString("PositiveError")
+                                             : OUString("NegativeError") ) >>= fPercent )
                 {
                     if( nIndex >=0 && nIndex < rData.getLength() &&
                         ! ::rtl::math::isNan( rData[nIndex] ) &&
@@ -656,16 +656,16 @@ double lcl_getErrorBarLogicLength(
             break;
             case ::com::sun::star::chart::ErrorBarStyle::ABSOLUTE:
                 xProp->getPropertyValue( bPositive
-                                         ? "PositiveError"
-                                         : "NegativeError") >>= fResult;
+                                         ? OUString("PositiveError")
+                                         : OUString("NegativeError") ) >>= fResult;
                 break;
             case ::com::sun::star::chart::ErrorBarStyle::ERROR_MARGIN:
             {
                 // todo: check if this is really what's called error-margin
                 double fPercent = 0;
                 if( xProp->getPropertyValue( bPositive
-                                             ? "PositiveError"
-                                             : "NegativeError") >>= fPercent )
+                                             ? OUString("PositiveError")
+                                             : OUString("NegativeError") ) >>= fPercent )
                 {
                     double fMaxValue;
                     ::rtl::math::setInf(&fMaxValue, true);


More information about the Libreoffice-commits mailing list