diff options
| author | saturneric <[email protected]> | 2026-10-24 11:00:29 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-24 11:00:29 +0200 |
| commit | acd8cfc36bc2ddb9584f8a27b364f43e5cc24af3 (patch) | |
| tree | ab1936b700b9156d9dce89a0ce67c9f9239ed953 /src/m_key_server_sync/KeyServerBatchLogic.cpp | |
| parent | refactor(email): use Qt string literal operators (diff) | |
| download | modules-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/KeyServerBatchLogic.cpp')
| -rw-r--r-- | src/m_key_server_sync/KeyServerBatchLogic.cpp | 6 |
1 files changed, 4 insertions, 2 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; } |
