Re: [taskjuggler] taskjuggler 1.9.0 compile on Debian woody (KDE 3.0.5a)

From: Chris Schlaeger (cs_at_suse.de)
Date: Wed Aug 13 2003 - 20:02:51 CEST


From: Chris Schlaeger <cs@suse.de>
Date: Wed, 13 Aug 2003 20:02:51 +0200
Message-Id: <200308132003.08583.cs@suse.de>
Subject: Re: [taskjuggler] taskjuggler 1.9.0 compile on Debian woody (KDE 3.0.5a)

On Wednesday 13 August 2003 19:06, Peter Biechele wrote:
> RealFormat.cpp: In method `class QString RealFormat::format(double, bool =
> TRUE) const':
> RealFormat.cpp:49: no matching function for call to `QString::replace
> (char, char)'
> /usr/include/qt/qstring.h:501: candidates are: class QString &
> QString::replace(unsigned int, unsigned int, const QString &)
> /usr/include/qt/qstring.h:502: class QString &
> QString::replace(unsigned int, unsigned int, const QChar *, unsigned int)
> /usr/include/qt/qstring.h:504: class QString &
> QString::replace(const QRegExp &, const QString &)
> /usr/include/qt/qstring.h:607: class QString &
> QString::replace(const QString &, const QString &)
> make[2]: *** [RealFormat.lo] Fehler 1
> make[2]: Leaving directory
> `/mount/raid/home/pebi/taskjuggler-1.9.0/taskjuggler'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory `/mount/raid/home/pebi/taskjuggler-1.9.0'
> make: *** [all] Fehler 2
> ---------------------------
>
> Do i need at least qt 3.1.x ???

No, at least not because of this problem. I haven't tried Qt3.0.x for a long
time, but in principle it should work. Maybe some other users can say more
about this.

Your problem looks like one of the implicit type conversion bugs that gcc 2.95
had. Try the following patch:

diff -b -u -p -r1.1 RealFormat.cpp
--- RealFormat.cpp 24 May 2003 17:35:34 -0000 1.1
+++ RealFormat.cpp 13 Aug 2003 18:00:12 -0000
@@ -46,7 +46,7 @@ RealFormat::format(double val, bool show
     }
     if (text.isEmpty())
         text = "0";
- text.replace(' ', '0');
+ text.replace(QChar(' '), QChar('0'));
     if (!fractionSep.isEmpty() && fracDigits > 0)
     {
         double v = fabs(val) - abs((int) val);

Chris

-- 
KDE 3.1: Conquer your Enterprise Desktop!  See http://www.kde.org!
GPG Key: 1024D/0500838B  A5FE C051 2AFC 9A14 768A  5125 5829 5750 0500 838B




This archive was generated by hypermail 2.1.7 : Wed Aug 13 2003 - 20:03:35 CEST