summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libkdchart/KDChartAxesPainter.cpp2
-rw-r--r--libkdchart/KDChartParams.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libkdchart/KDChartAxesPainter.cpp b/libkdchart/KDChartAxesPainter.cpp
index 5a169f0..a8a9c2a 100644
--- a/libkdchart/KDChartAxesPainter.cpp
+++ b/libkdchart/KDChartAxesPainter.cpp
@@ -2995,7 +2995,7 @@ void KDChartAxesPainter::calculateLabelTexts(
nHigh = log10( TQABS( nHigh ) );
//tqDebug("[L-0] nLow: %f, nHigh: %f", nLow, nHigh );
- double intPart=0.0; // initialization necessary for Borland C++
+ double intPart;
double fractPart = modf( nLow, &intPart );
//tqDebug(" intPart: %f\nfractPart: %f", intPart, fractPart );
if( 0.0 > nLow && 0.0 != fractPart )
diff --git a/libkdchart/KDChartParams.h b/libkdchart/KDChartParams.h
index 0994e19..9e4a0db 100644
--- a/libkdchart/KDChartParams.h
+++ b/libkdchart/KDChartParams.h
@@ -702,7 +702,7 @@ public slots:
static int roundVal( double d )
{
double fr;
- double i=0.0; // initialization necessary for Borland C++
+ double i;
fr = modf( d, &i );
int ret = static_cast < int > ( i );
if( 0.49999 <= fabs( fr ) )