qt6-bb10/tests/auto/network
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
..
access HttpTestServer: pass std::function by value and move into place 2024-04-18 19:06:02 +02:00
kernel tst_QHostInfo: increase the timeout to 15s 2024-03-13 18:29:12 -07:00
selftest Change license for tests files 2024-02-04 09:56:42 +01:00
socket UDP: don't disable read notification unless we have a datagram 2024-03-02 22:57:09 +01:00
ssl Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00