Fix C++20 deprecated capture of *this in [=]


The exec() function is synchronous, so we can just replace [=] with
[&], cf. 3122811344cd5480b22523078accb39e2d657886.

Amends af481fc79b93c7fa3ad6f4b6ad061f1812a39a29.

Pick-to: 6.9 6.8
Change-Id: I6d3a531287dbf3c8c9be7103b5d936325627ca7e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commit9b8e0a25aaefa5048311fd5fa0adb11e444eca22
parent7b56c28e391ec91b407ced734e8f748040e4c62c
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeSun, 29 Dec 2024 22:11:30 +0100