qt6-bb10/tests/auto/network/access/qrestaccessmanager
Marc Mutz a564618838 HttpTestServer: pass std::function by value and move into place
Virtually all callers of this function (will) pass rvalues, so take
the std::function by value (reaping C++17 guaranteed copy elision) and
std::move() into the member variable ("perfect sink").

Like for many owning types, moves are much cheaper than copies for
std::function, because the external state is merely tranferred between
objects, and not copied.

Amends e560adef21.

Pick-to: 6.7
Change-Id: I269b54e51ba09ac595ac4e4f255209778819adad
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-04-18 19:06:02 +02:00
..
CMakeLists.txt CMake: Make a few more auto tests standalone 2024-03-14 01:14:18 +01:00
httptestserver.cpp HttpTestServer: pass std::function by value and move into place 2024-04-18 19:06:02 +02:00
httptestserver_p.h HttpTestServer: pass std::function by value and move into place 2024-04-18 19:06:02 +02:00
tst_qrestaccessmanager.cpp tst_QRestAccessManager: fix signature of server handlers 2024-04-18 19:06:02 +02:00