refactor: Make move semantics explicit for callers

This commit is contained in:
Hennadii Stepanov
2023-03-21 13:04:01 +00:00
parent 6c2d5972f3
commit 04831fee6d
6 changed files with 16 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ static void CCheckQueueSpeedPrevectorJob(benchmark::Bench& bench)
// Make insecure_rand here so that each iteration is identical.
CCheckQueueControl<PrevectorJob> control(&queue);
for (auto vChecks : vBatches) {
control.Add(vChecks);
control.Add(std::move(vChecks));
}
// control waits for completion by RAII, but
// it is done explicitly here for clarity