refactor: replace non-empty QString constructors with QStringLiteral()

This commit is contained in:
Integral
2024-11-03 12:50:41 +08:00
parent 12d6fc24e7
commit 62c59f6fd3
18 changed files with 43 additions and 43 deletions

View File

@@ -9,7 +9,7 @@
#define WriteTempFile(fn, data) \
QDir dir; \
if (!dir.exists("temp")) dir.mkdir("temp"); \
QFile f(QString("temp/") + fn); \
QFile f(QStringLiteral("temp/") + fn); \
bool ok = f.open(QIODevice::WriteOnly | QIODevice::Truncate); \
if (ok) { \
f.write(data); \