1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Merge pull request #1283 from TomHarte/RedundantMove

Remove pointless — and damaging — `std::move`.
This commit is contained in:
Thomas Harte 2023-12-23 22:09:11 -05:00 committed by GitHub
commit a3e4d38be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ template <bool perform_automatically, bool start_immediately = true, typename Pe
///
/// This is not guaranteed safely to restart a stopped queue.
void start() {
thread_ = std::move(std::thread{
thread_ = std::thread{
[this] {
ActionVector actions;
@ -144,7 +144,7 @@ template <bool perform_automatically, bool start_immediately = true, typename Pe
actions.clear();
}
}
});
};
}
/// Schedules any remaining unscheduled work, then blocks synchronously