summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentexception.h
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-07-10 12:52:57 +0200
committerMarc Mutz <[email protected]>2025-07-14 22:25:35 +0000
commitb9f6a1b113d8f26210da5c3194f0f790883761fe (patch)
tree9d081c5ce065e8a43d37b1396e96f62a346fb294 /src/concurrent/qtconcurrentexception.h
parent8e398cec88f6019edc83e52cab64e3ef52bef173 (diff)
QTextStream: use write(QChar) more
Replace write(&ch, 1) calls with write(ch) ones. The QChar overload, added in 31c6d9f04ba80e6776ae01cb0588e6bd228f7184, is safer, because it has less preconditions. With QTextStream being security-critical, we should target to use safer functions to do the same work, even if it introduces a bit of git history churn. The call from a different TU (qdebug.cpp) means we need to remove the lying inline keywords from both declaration and definition of write(QChar), because GCC -Werrors on them. As a drive-by, remove a use of QLatin1Char, in preparation of moving from QChar to char16_t, eventually. Pick-to: 6.10 6.9 6.8 Change-Id: I97b4c8c68a4ee0d4b821c4d2ec4a9dd6f44dceb0 Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentexception.h')
0 files changed, 0 insertions, 0 deletions