aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgSmartCardManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgSmartCardManager.cpp')
-rw-r--r--src/core/function/gpg/GpgSmartCardManager.cpp7
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;
}