QTextToSpeechEngineSpeechd: build with QT_NO_CAST_FROM_BYTEARRAY


Assuming QVoice objects from different backends cannot mix, the
QByteArray in question comes from QVariant-unwrapping of a QByteArray
wrapped in updateVoices(), which created them from NUL-terminated C
strings. So the QByteArray is known to be NUL-terminated, and we can
just call data() here (instead of nullTerminated().constData()).

Amends 81414c0c4d8c59867f173211678b02f3653167a1 (6.4).

Pick-to: 6.11 6.10 6.8
Task-number: QTBUG-145302
Change-Id: I3dec74d0054a1c2798c14ee99e0ed912a1d45dcf
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
commit9d3b4f80d81205fbe32b6b5a14dd63446bfa7516
parente0def625fc40747c5a7bf18e01e5413437773cb8
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 27 Mar 2026 18:24:24 +0100