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