tst_QOAuthHttpServerReplyHandler: build with QT_NO_CAST_FROM_BYTEARRAY


Make the conversion explicit.

As a drive-by, in callback(), perform the concatenation only once and
use a loop to indicate that, indeed, we're executing the exact same
line twice (this reader was frantically looking for a difference...).

Amends fd49b7f6543e7b49be7847624c64ee86c4272ccd (picked to 6.7).

Task-number: QTBUG-145250
Pick-to: 6.11 6.10 6.8
Change-Id: I7d3d97d4851650811c513c5be9a72cee238e46c4
Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
commit18ddc9e6bb3cb36aee11dbd1f9b684c53653a13d
parent07dedd7e9c4efbdd911cd58a5dd71b6b81c97228
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 26 Mar 2026 17:46:52 +0000