summaryrefslogtreecommitdiffstats
path: root/kchart
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-10-26 19:08:47 +0900
committerMichele Calgaro <[email protected]>2024-10-27 12:22:55 +0900
commitdbc953c5a76adc77d2a58f666dd692ae5b792025 (patch)
tree9ac6bb0fe41c36f483998ee5aa99fa355b837264 /kchart
parentc31f09060795714fcbd8d6b84db38f9846eb38a1 (diff)
downloadkoffice-dbc953c5a76adc77d2a58f666dd692ae5b792025.tar.gz
koffice-dbc953c5a76adc77d2a58f666dd692ae5b792025.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kchart')
-rw-r--r--kchart/kdchart/KDChartAxesPainter.cpp2
-rw-r--r--kchart/kdchart/KDChartParams.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/kchart/kdchart/KDChartAxesPainter.cpp b/kchart/kdchart/KDChartAxesPainter.cpp
index b07195bf..e3fc9384 100644
--- a/kchart/kdchart/KDChartAxesPainter.cpp
+++ b/kchart/kdchart/KDChartAxesPainter.cpp
@@ -2990,7 +2990,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/kchart/kdchart/KDChartParams.h b/kchart/kdchart/KDChartParams.h
index a87fba68..f44c887d 100644
--- a/kchart/kdchart/KDChartParams.h
+++ b/kchart/kdchart/KDChartParams.h
@@ -703,7 +703,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 ) )