diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-04-18 08:59:43 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-04-18 19:06:02 +0200 |
| commit | 5b6c6dab632a32a09963453b08731e9e33334e9a (patch) | |
| tree | 114ba79a1eb1bd191fa7c2b53b58e18a314f8327 /src/widgets/doc/snippets/widgetdelegate.cpp | |
| parent | d4aaf61b3333b48b4e79ad60b63bb50dbea72617 (diff) | |
tst_QRestAccessManager: fix signature of server handlers
HttpTestServer::Handler is declared to take the first argument by
reference to const, not by value, so use the same parameter passing
for the lambdas passed to setHandler().
Avoids copying the (rather large) argument when invoked through the
std::function wrapper, and silences clazy-function-args-by-ref.
Pick-to: 6.7
Change-Id: I726d0b98a7fcb3b1b33c5bde203035f593c39bdd
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/widgetdelegate.cpp')
0 files changed, 0 insertions, 0 deletions
