diff options
author | saturneric <[email protected]> | 2025-04-17 12:17:10 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-17 12:37:57 +0000 |
commit | 81cac67efb288daafd179c670df1e3de7f8f9aad (patch) | |
tree | 4d72dfa4cb88e5bbafcba4bf0787b78cbf58acd2 /src/core/function/gpg/GpgSmartCardManager.cpp | |
parent | fix: remove -Wincompatible-pointer-types from gpgme build on windows (diff) | |
download | GpgFrontend-81cac67efb288daafd179c670df1e3de7f8f9aad.tar.gz GpgFrontend-81cac67efb288daafd179c670df1e3de7f8f9aad.zip |
fix: compiler issues on CI
Diffstat (limited to '')
-rw-r--r-- | src/core/function/gpg/GpgSmartCardManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgSmartCardManager.cpp b/src/core/function/gpg/GpgSmartCardManager.cpp index b4b660cf..4c55b63d 100644 --- a/src/core/function/gpg/GpgSmartCardManager.cpp +++ b/src/core/function/gpg/GpgSmartCardManager.cpp @@ -182,9 +182,10 @@ auto PercentDataEscape(const QByteArray& data, bool plus_escape = false, if (!prefix.isEmpty()) { for (QChar ch : prefix) { if (ch == '%' || ch.unicode() < 0x20) { - result += QString("%%%1") - .arg(ch.unicode(), 2, 16, QLatin1Char('0')) - .toUpper(); + result += + QString("%%%1") + .arg(static_cast<int>(ch.unicode()), 2, 16, QLatin1Char('0')) + .toUpper(); } else { result += ch; } |