[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: AW: kpackage: QString function calls?
From: Thomas Kordelle <Thomas.Kordelle () metechnology ! com>
Date: 1999-06-30 7:41:52
[Download RAW message or body]
Hi,
if you want to build it fast you have to do a workaround.
OLDSTYLE:
char *last_dir = strrchr(name, '/');
a->insert("filename", new QString(last_dir? (last_dir+1) : name));
a->insert("base", last_dir? (new QString(name, last_dir - name + 2)) : new QString(""));
NEWSTYLE:
QString *dummy;
char *last_dir = strrchr(name, '/');
if(last_dir)
{
dummy = new QString(name);
dummy->truncate(last_dir - name + 2);
}
else
dummy = QString("");
a->insert("filename", new QString(last_dir? (last_dir+1) : name));
a->insert("base", dummy);
I think the whole thing must be rewritten. There are many other things in kdeadmin
that do not compile with KDE-2.0.
Bye Thomas
-----Ursprüngliche Nachricht-----
Von: Bob Bernstein [SMTP:ruptured-duck@home.com]
Gesendet am: Dienstag, 29. Juni 1999 18:47
An: kde-devel@max.tat.physik.uni-tuebingen.de
Betreff: kpackage: QString function calls?
While building kdeadmin from cvsup, in kpackage the build bombs on
fbsdInterface.cpp with a
"no matching function for call to 'QString::QString(char *&, int)'.
This appears wrt lines 131, 195, 440 and 576.
--
Bob Bernstein http://members.home.net/ruptured-duck
at
Esmond, Rhode Island, USA
--==++*++==--
"RMS's "curmudgeon-like" griping that he didn't like the term "Open
Source" looked silly to many last year; it's not looking so dumb
today..." Christopher B. Browne
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic