blob: 3f27fb781640f1d4088019a9c033afdd46d5dd13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#define QT_USE_QSTRINGBUILDER
#include <QtCore/QString>
void test()
{
const QString s1 = "tests/" + QString::fromLatin1("foo"); // Warning
const QString s2 = "tests/" % QString::fromLatin1("foo"); // Warning
const QString s3 = "tests/" + QString::fromLatin1("foo"); // OK
const QString s4 = "tests/" % QString::fromLatin1("foo"); // OK
}
|