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/KeyServerSyncModule.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/m_key_server_sync/KeyServerSyncModule.cpp') diff --git a/src/m_key_server_sync/KeyServerSyncModule.cpp b/src/m_key_server_sync/KeyServerSyncModule.cpp index f7ba7f4..672862e 100644 --- a/src/m_key_server_sync/KeyServerSyncModule.cpp +++ b/src/m_key_server_sync/KeyServerSyncModule.cpp @@ -46,6 +46,8 @@ #include "SearchKeyDialog.h" #include "VKSInterface.h" +using namespace Qt::StringLiterals; + namespace { using Severity = gf::cmd::host::AppMessage::Severity; @@ -224,8 +226,7 @@ class KeyServerBatch : public QObject { Schedule(); }, [this, key](const QString& error, const QString&) { - failures_.append( - QStringLiteral("%1: %2").arg(key.fingerprint, error)); + failures_.append(u"%1: %2"_s.arg(key.fingerprint, error)); Schedule(); }, this); @@ -247,7 +248,7 @@ class KeyServerBatch : public QObject { Schedule(); }; const auto failed = [this, key](const QString& error) { - failures_.append(QStringLiteral("%1: %2").arg(key.fingerprint, error)); + failures_.append(u"%1: %2"_s.arg(key.fingerprint, error)); Schedule(); }; if (route_.vks) { -- cgit