Fix incorrect usages of std::make_move_iterator
In several places, std::make_move_iterator was used to move from a const
vector, which is not possible and fell back to copy.
Use the existing Qt3DCore::moveAtEnd utility to ensure a move operation
is actually happening.
* When readability permits, pass directly a return value as second
parameter;
* Otherwise, std::move from a mutable vector.
Change-Id: I56c8925bbdeab95257d0a7fa89cffcda53fd6451
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| commit | b15f62e3234a85d7220fc1533b6a224522dd4735 |
| parent | 43a7aad707ece710fce1ace0c2c24aee23ddfa2d |
| author | Aurélien Brooke <aurelien@bahiasoft.fr> |
| committer | Aurélien Brooke <aurelien@bahiasoft.fr> |
| commit time | Mon, 19 Dec 2022 08:50:15 +0100 |