[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdemultimedia/kscd
From: David Faure <faure () kde ! org>
Date: 2005-04-04 8:37:45
Message-ID: 200504041037.49297.faure () kde ! org
[Download RAW message or body]
On Monday 04 April 2005 08:24, André Wöbbeking wrote:
> On Monday 04 April 2005 00:44, David Faure wrote:
>
> > Doesn't that create (and return the address of) a temporary QString too??
>
> Of cource David :-) I meant two different things:
>
> 1) "" creates temporary, return plain QString instead of const QString&
>
> 2) don't use "", as it's slow and will not work with QT_NO_CAST_ASCII (or is
> it QT_NO_ASCII_CAST, can't remember I use both to be safe :-) And in this
> case you've to return plain QString too.
Right. But with Qt3 at least, you can return QString::null, and keep the const QString&.
Qt4 will be another story - all things in good time :)
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic