aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgSmartCardManager.cpp
diff options
context:
space:
mode:
authorAnthony Lloyd <[email protected]>2025-04-30 05:18:11 +0000
committerAnthony Lloyd <[email protected]>2025-04-30 05:18:11 +0000
commite57423f61429f734c48bc592c5c3d9642cde84aa (patch)
tree31f19c535a32989bd2f8d213644cfba082d86b8a /src/core/function/gpg/GpgSmartCardManager.cpp
parentfix cpack for fedora (diff)
downloadGpgFrontend-e57423f61429f734c48bc592c5c3d9642cde84aa.tar.gz
GpgFrontend-e57423f61429f734c48bc592c5c3d9642cde84aa.zip
rpm_works
Diffstat (limited to 'src/core/function/gpg/GpgSmartCardManager.cpp')
-rw-r--r--src/core/function/gpg/GpgSmartCardManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgSmartCardManager.cpp b/src/core/function/gpg/GpgSmartCardManager.cpp
index 203c36ec..e0608dd3 100644
--- a/src/core/function/gpg/GpgSmartCardManager.cpp
+++ b/src/core/function/gpg/GpgSmartCardManager.cpp
@@ -204,7 +204,7 @@ auto PercentDataEscape(const QByteArray& data, bool plus_escape = false,
} else if (plus_escape && ch == ' ') {
result += '+';
} else if (plus_escape && (ch < 0x20 || ch == '+')) {
- result += QString("%%%1").arg(ch, 2, 16, QLatin1Char('0')).toUpper();
+ result += QString("%%%1").arg(static_cast<int>(static_cast<unsigned char>(ch)), 2, 16, QLatin1Char('0')).toUpper();
} else {
result += QLatin1Char(ch);
}