tst_QHttpServerMultithreaded: fix C++17-ism


To capture *this using [=] is deprecated in C++20. The replacement,
[=,this], is C++20-only. So grab the nettle and list all captured
variables manually, which is the only formulation that doesn't warn in
either dialect.

To keep the capture list size managable, move the make_shared call out
to a line by itself. As a drive-by, also std::move(message).

Amends 1de0a09f59113433cda37906b7b28d5650d4fa02 (picked to 6.8).

Pick-to: 6.11 6.10 6.8
Change-Id: I49aee76b90753b048a6df1fbaf708a070847dea6
Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>
commit0f7e9d3329a292f0834dd7ed7bddd95a73993d54
parent2532cda6f2f130bda42ac8e65c40f870692bfe06
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 26 Mar 2026 08:54:09 +0100