aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_key_server_sync
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_key_server_sync')
-rw-r--r--src/m_key_server_sync/KeyServerBatchLogic.cpp6
-rw-r--r--src/m_key_server_sync/KeyServerList.cpp5
-rw-r--r--src/m_key_server_sync/KeyServerSyncModule.cpp7
3 files changed, 11 insertions, 7 deletions
diff --git a/src/m_key_server_sync/KeyServerBatchLogic.cpp b/src/m_key_server_sync/KeyServerBatchLogic.cpp
index 18588eb..e1ae807 100644
--- a/src/m_key_server_sync/KeyServerBatchLogic.cpp
+++ b/src/m_key_server_sync/KeyServerBatchLogic.cpp
@@ -33,6 +33,8 @@
#include "GFModuleTr.h"
+using namespace Qt::StringLiterals;
+
namespace KeyServerBatchLogic {
namespace {
@@ -40,9 +42,9 @@ namespace {
/// The failures, one per line, under the headline.
auto WithFailures(QString headline, const QStringList& failures) -> QString {
if (failures.isEmpty()) return headline;
- headline += QStringLiteral("\n\n");
+ headline += u"\n\n"_s;
headline += GTrC::tr("Failed:");
- for (const auto& f : failures) headline += QStringLiteral("\n") + f;
+ for (const auto& f : failures) headline += u"\n"_s + f;
return headline;
}
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()},
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) {