On Tuesday, December 20, 2011 10:17:20 Thiago Macieira wrote: > str = QString::fromLatin1("%1 %2").arg(foo, bar); > reason: QString::fromLatin1 will need to allocate memory > use: QStringLiteral
I looked into QStringLiteral by the way. It has no arg() methods, so if you are suggesting str = QStringLiteral("%1 %2").arg(foo, bar); that won't work. Are you suggesting str = QString(QStringLiteral("%1 %2")).arg(foo, bar); or so? Thanks, -- Stephen Kelly <stephen.ke...@kdab.com> | Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-Independent Software Solutions
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development