mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net-im/debugtox: Fix build with Qt 6.9
With hat: kde@ PR: 286051
This commit is contained in:
parent
d1bef6c785
commit
072fd66da8
1 changed files with 16 additions and 0 deletions
16
net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp
Normal file
16
net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue