From fbce3880beda280328110b94f503b06f0fc791cf Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 26 Apr 2025 12:51:24 +0200 Subject: fix: build issue on windows --- src/core/function/gpg/GpgSmartCardManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/function/gpg/GpgSmartCardManager.cpp') 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(ch), 2, 16, QLatin1Char('0')) + .toUpper(); } else { result += QLatin1Char(ch); } -- cgit v1.2.3