tests: Use QStringLiteral
This commit is contained in:
@@ -62,7 +62,7 @@ void PrintTo(const ::QUrl &url, std::ostream &os) {
|
||||
|
||||
TemporaryResource::TemporaryResource(const QString &filename, QObject *parent) : QTemporaryFile(parent) {
|
||||
|
||||
setFileTemplate(QDir::tempPath() + "/strawberry_test-XXXXXX." + filename.section('.', -1, -1));
|
||||
setFileTemplate(QDir::tempPath() + QStringLiteral("/strawberry_test-XXXXXX.") + filename.section(QLatin1Char('.'), -1, -1));
|
||||
open();
|
||||
|
||||
QFile resource(filename);
|
||||
|
||||
Reference in New Issue
Block a user