aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-17 12:17:10 +0000
committersaturneric <[email protected]>2025-04-17 12:37:57 +0000
commit81cac67efb288daafd179c670df1e3de7f8f9aad (patch)
tree4d72dfa4cb88e5bbafcba4bf0787b78cbf58acd2 /src
parentfix: remove -Wincompatible-pointer-types from gpgme build on windows (diff)
downloadGpgFrontend-81cac67efb288daafd179c670df1e3de7f8f9aad.tar.gz
GpgFrontend-81cac67efb288daafd179c670df1e3de7f8f9aad.zip
fix: compiler issues on CI
Diffstat (limited to 'src')
-rw-r--r--src/core/function/gpg/GpgCommandExecutor.cpp4
-rw-r--r--src/core/function/gpg/GpgSmartCardManager.cpp7
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/function/gpg/GpgCommandExecutor.cpp b/src/core/function/gpg/GpgCommandExecutor.cpp
index 191c1259..dd8a500e 100644
--- a/src/core/function/gpg/GpgCommandExecutor.cpp
+++ b/src/core/function/gpg/GpgCommandExecutor.cpp
@@ -64,8 +64,8 @@ auto BuildTaskFromExecCtx(const GpgCommandExecutor::ExecuteContext &context)
Thread::Task::TaskRunnable runner =
[](const DataObjectPtr &data_object) -> int {
- FLOG_D("process runner called, data object size: %lu",
- data_object->GetObjectSize());
+ LOG_D() << "process runner called, data object size:"
+ << data_object->GetObjectSize();
if (!data_object->Check<QString, QStringList, GpgCommandExecutorInterator,
GpgCommandExecutorCallback>()) {
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;
}