Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/net-im/debugtox/files/patch-src_models_bytes_bytearray.cpp
16460 views
1
Fix build with Qt >= 6.9.0
2
3
https://github.com/TokTok/debugtox/pull/23
4
5
--- src/models/bytes/bytearray.cpp.orig 2025-02-08 00:20:16 UTC
6
+++ src/models/bytes/bytearray.cpp
7
@@ -14,7 +14,8 @@ QString ByteArray::toString() const
8
if (c.isPrint() || c.isSpace()) {
9
result += c;
10
} else {
11
- result += QStringLiteral("\\x%1").arg(c.unicode(), 2, 16, QLatin1Char('0'));
12
+ result += QStringLiteral("\\x%1").arg(static_cast<quint16>(c.unicode()), 2, 16,
13
+ QLatin1Char('0'));
14
}
15
}
16
return result;
17
18