[Qt-interest] Weird compiler error with QString(QChar(value))
Nikos Chantziaras
realnc at arcor.de
Wed May 5 21:38:43 CEST 2010
On 05/05/2010 10:28 PM, Constantin Makshin wrote:
> This isn't directly related to your question, but QString::toUtf8()
> returns a QByteArray object, not a reference.
I'm holding a reference to it. This as old habit of mine in order to
avoid temporaries (for optimization purposes.) The compiler's optimizer
might or might not do that anyway, I'm not really sure, but it simply
stuck with me to this day.
More information about the Qt-interest-old
mailing list