From acd8cfc36bc2ddb9584f8a27b364f43e5cc24af3 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 24 Oct 2026 11:00:29 +0200 Subject: refactor: use Qt string literal operators in modules - replace QStringLiteral with u""_s and QLatin1String with ""_L1 in the im, key server sync, pgp inspect and version check modules - spell non-literal Latin-1 views as QLatin1StringView - import Qt::StringLiterals per file, as modules have no host PCH --- src/m_key_server_sync/KeyServerList.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/m_key_server_sync/KeyServerList.cpp') diff --git a/src/m_key_server_sync/KeyServerList.cpp b/src/m_key_server_sync/KeyServerList.cpp index 160d57c..027dff5 100644 --- a/src/m_key_server_sync/KeyServerList.cpp +++ b/src/m_key_server_sync/KeyServerList.cpp @@ -36,6 +36,8 @@ #include "GFModule.h" #include "GFSDKUI.h" +using namespace Qt::StringLiterals; + namespace { // Relative: the Host places them in this module's own settings group, which @@ -126,8 +128,7 @@ auto KeyServerEntry::ToJson() const -> QJsonObject { {"url", url}, {"hkp", hkp}, {"vks", vks}, - {"state", - verified ? QStringLiteral("verified") : QStringLiteral("unverified")}, + {"state", verified ? u"verified"_s : u"unverified"_s}, {"last_tested", last_tested.isValid() ? last_tested.toUTC().toString(Qt::ISODate) : QString()}, -- cgit