From f9aa594c5e3199f3fb5608c55ce48a2909b882c5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 27 Oct 2024 13:41:59 +0900 Subject: [PATCH] Drop Borland compiler specific code Signed-off-by: Michele Calgaro --- libkdchart/KDChartAxesPainter.cpp | 2 +- libkdchart/KDChartParams.h | 2 +- 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 ) )