[Libreoffice-commits] core.git: chart2/source

Stephan Bergmann sbergman at redhat.com
Fri Oct 9 00:31:19 PDT 2015


 chart2/source/tools/ExponentialRegressionCurveCalculator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c1df3a34dd3243fbbef503eb28e239df5d4a18b7
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Oct 9 09:30:54 2015 +0200

    loplugin:literaltoboolconversion
    
    Change-Id: Ie2d1b466f5773799347aac59d7b5dc25f283b920

diff --git a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
index d5c8ed0..0c79ff4 100644
--- a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
@@ -177,7 +177,7 @@ OUString ExponentialRegressionCurveCalculator::ImplGetRepresentation(
           ( !bHasSlope && m_fLogIntercept != 0.0 ) )    // show logarithmic output, if intercept and slope both are near one
         {                                               // otherwise drop output of intercept, which is 1 here
             aBuf.append( getFormattedString( xNumFormatter, nNumberFormatKey, m_fLogIntercept) );
-            aBuf.append( (m_fLogSlope < 0.0) ? " " : " + ");
+            aBuf.append( (m_fLogSlope < 0.0) ? OUStringLiteral(" ") : OUStringLiteral(" + "));
         }
     }
     if ( m_fLogSlope < 0.0 )


More information about the Libreoffice-commits mailing list