diff options
author | Michele Calgaro <[email protected]> | 2024-10-27 13:41:59 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-10-31 17:21:19 +0900 |
commit | 5cc1751a0237d9b344d73d071f7333c0d46f2ca2 (patch) | |
tree | 0ab4b67393bab5fddd44f2f8e3d5d47e74301c71 | |
parent | 8990f9292db477f29d04b9a60d41a162397c2c57 (diff) | |
download | kmymoney-5cc1751a0237d9b344d73d071f7333c0d46f2ca2.tar.gz kmymoney-5cc1751a0237d9b344d73d071f7333c0d46f2ca2.zip |
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit f9aa594c5e3199f3fb5608c55ce48a2909b882c5)
-rw-r--r-- | libkdchart/KDChartAxesPainter.cpp | 2 | ||||
-rw-r--r-- | 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 ) ) |