aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-26 10:51:24 +0000
committersaturneric <[email protected]>2025-04-26 10:51:24 +0000
commitfbce3880beda280328110b94f503b06f0fc791cf (patch)
tree236e594cf5b2045a86b882527a8af45ccf9384b1
parentchore: update translation it_IT (diff)
downloadGpgFrontend-fbce3880beda280328110b94f503b06f0fc791cf.tar.gz
GpgFrontend-fbce3880beda280328110b94f503b06f0fc791cf.zip
fix: build issue on windows
-rw-r--r--src/core/function/gpg/GpgSmartCardManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgSmartCardManager.cpp b/src/core/function/gpg/GpgSmartCardManager.cpp
index 203c36ec..83f3a45d 100644
--- a/src/core/function/gpg/GpgSmartCardManager.cpp
+++ b/src/core/function/gpg/GpgSmartCardManager.cpp
@@ -204,7 +204,9 @@ 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>(ch), 2, 16, QLatin1Char('0'))
+ .toUpper();
} else {
result += QLatin1Char(ch);
}