git: 072fd66da84e - main - net-im/debugtox: Fix build with Qt 6.9
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Apr 2025 03:13:03 UTC
The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=072fd66da84ebdd1f2f7041730163bb6158fee4e commit 072fd66da84ebdd1f2f7041730163bb6158fee4e Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2025-04-27 03:04:36 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2025-04-27 03:09:38 +0000 net-im/debugtox: Fix build with Qt 6.9 With hat: kde@ PR: 286051 --- .../debugtox/files/patch-src_models_bytes_bytearray.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp b/net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp new file mode 100644 index 000000000000..7e7cfbb91cde --- /dev/null +++ b/net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp @@ -0,0 +1,16 @@ +Fix build with Qt >= 6.9.0 + +https://github.com/TokTok/debugtox/pull/23 + +--- src/models/bytes/bytearray.cpp.orig 2025-02-08 00:20:16 UTC ++++ src/models/bytes/bytearray.cpp +@@ -14,7 +14,8 @@ QString ByteArray::toString() const + if (c.isPrint() || c.isSpace()) { + result += c; + } else { +- result += QStringLiteral("\\x%1").arg(c.unicode(), 2, 16, QLatin1Char('0')); ++ result += QStringLiteral("\\x%1").arg(static_cast<quint16>(c.unicode()), 2, 16, ++ QLatin1Char('0')); + } + } + return result;