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

@@ -13,7 +13,7 @@ namespace NekoGui_fmt {
url.setScheme("http");
}
} else {
url.setScheme(QString("socks%1").arg(socks_http_type));
url.setScheme(QStringLiteral("socks%1").arg(socks_http_type));
}
if (!name.isEmpty()) url.setFragment(name);
if (!username.isEmpty()) url.setUserName(username);
@@ -222,4 +222,4 @@ namespace NekoGui_fmt {
return url.toString(QUrl::FullyEncoded);
}
} // namespace NekoGui_fmt
} // namespace NekoGui_fmt