Fix test to not take lvalue into the lambda of a concurrent run
Though a route() callback can take references as arguments, they
might go out of scope when they are passed by reference to concurrent
runs. Copy the necessary data into objects that can be passed by value
into the lambda used by a concurrent run.
Pick-to: 6.8 6.9
Change-Id: I823ba380c30078624a33c73e95c60f91866bc1f4
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
| commit | 7190817ff64d449cfed7713aa2a9d2d485055c78 |
| parent | 43cfb1dbd430394e12ce6604a94fbd8bc2ace041 |
| author | Øystein Heskestad <oystein.heskestad@qt.io> |
| committer | Matthias Rauter <matthias.rauter@qt.io> |
| commit time | Tue, 4 Mar 2025 09:20:37 +0000 |