aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_key_server_sync/KeyServerSyncModule.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-10-24 11:00:29 +0200
committersaturneric <[email protected]>2026-10-24 11:00:29 +0200
commitacd8cfc36bc2ddb9584f8a27b364f43e5cc24af3 (patch)
treeab1936b700b9156d9dce89a0ce67c9f9239ed953 /src/m_key_server_sync/KeyServerSyncModule.cpp
parentrefactor(email): use Qt string literal operators (diff)
downloadmodules-acd8cfc36bc2ddb9584f8a27b364f43e5cc24af3.tar.gz
modules-acd8cfc36bc2ddb9584f8a27b364f43e5cc24af3.zip
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
Diffstat (limited to 'src/m_key_server_sync/KeyServerSyncModule.cpp')
-rw-r--r--src/m_key_server_sync/KeyServerSyncModule.cpp7
1 files changed, 4 insertions, 3 deletions
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) {