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 | 461ff35f26769c6ce2579dbfc89fa4209955e4d9 (patch) | |
| tree | 968f8d6439afc9f54d9ca442530a353b4ca6a1a5 /src/m_email/EMailModule.cpp | |
| parent | refactor: remove Qt5 leftovers from modules (diff) | |
| download | modules-461ff35f26769c6ce2579dbfc89fa4209955e4d9.tar.gz modules-461ff35f26769c6ce2579dbfc89fa4209955e4d9.zip | |
refactor(email): use Qt string literal operators
- replace QStringLiteral with u""_s and QLatin1String with ""_L1
- import Qt::StringLiterals per file, as modules have no host PCH
Diffstat (limited to 'src/m_email/EMailModule.cpp')
| -rw-r--r-- | src/m_email/EMailModule.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/m_email/EMailModule.cpp b/src/m_email/EMailModule.cpp index 3cfd8b0..63c56e4 100644 --- a/src/m_email/EMailModule.cpp +++ b/src/m_email/EMailModule.cpp @@ -82,6 +82,8 @@ #include "EMailVerificationPayload.h" #include "GFModuleTr.h" +using namespace Qt::StringLiterals; + namespace { // Build one Info Board card object (title/status/fields) in the JSON shape the @@ -616,7 +618,7 @@ auto OpenRawAsEMailTab(const QByteArray& raw, const QString& title) -> bool { // arrived with, and a PGP/MIME signature covers the exact octets. return Commands() .Invoke<gf::cmd::host::DocumentOpen>( - {QStringLiteral("email"), title, QString(), + {u"email"_s, title, QString(), gf::cmd::MakeBlob(raw.constData(), static_cast<size_t>(raw.size())), false, false}) .Ok(); @@ -1721,7 +1723,7 @@ auto DoNewMessage(const gf::cmd::CommandContext& /*ctx*/, const gf::cmd::Unit& /*args*/) -> gf::cmd::Outcome<gf::cmd::Unit> { Commands().Invoke<gf::cmd::host::DocumentNew>( - {QStringLiteral("email"), QStringLiteral("untitled.eml")}); + {u"email"_s, u"untitled.eml"_s}); return gf::cmd::Outcome<gf::cmd::Unit>::Success({}); } |
