From koffice-devel Wed May 07 08:05:56 2003 From: Ben Burton Date: Wed, 07 May 2003 08:05:56 +0000 To: koffice-devel Subject: kspread --enable-final breakage X-MARC-Message: https://marc.info/?l=koffice-devel&m=105231151926513 Hi. Currently the kspread compile breaks under --enable-final due to the two (identical) implementations of approx_equal(). The following patch fixes the compile; does it look okay and if so can it be committed? Thanks - Ben. --- kspread_functions_database.cc 4 May 2003 13:35:37 -0000 1.11 +++ kspread_functions_database.cc 7 May 2003 08:01:29 -0000 @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -103,6 +104,9 @@ void KSpreadRegisterDatabaseFunctions() * *********************************************************************/ +/** + * Use the implementation from kspread_functions_helper.cc instead. + * static bool approx_equal (double a, double b) { if ( a == b ) @@ -110,6 +114,7 @@ static bool approx_equal (double a, doub double x = a - b; return (x < 0.0 ? -x : x) < ((a < 0.0 ? -a : a) * DBL_EPSILON); } + */ void getCond( KSpreadDB::Condition & cond, QString text ) { _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel