| 534 | } |
| 535 | |
| 536 | void SearchMarks::SetPreparingState(std::vector<FeatureID> const & features, bool isPreparing) |
| 537 | { |
| 538 | if (features.empty()) |
| 539 | return; |
| 540 | |
| 541 | ProcessMarks([&features, isPreparing](SearchMarkPoint * mark) -> base::ControlFlow |
| 542 | { |
| 543 | ASSERT(std::is_sorted(features.cbegin(), features.cend()), ()); |
| 544 | if (std::binary_search(features.cbegin(), features.cend(), mark->GetFeatureID())) |
| 545 | mark->SetPreparing(isPreparing); |
| 546 | return base::ControlFlow::Continue; |
| 547 | }); |
| 548 | } |
| 549 | |
| 550 | void SearchMarks::SetSales(std::vector<FeatureID> const & features, bool hasSale) |
| 551 | { |
nothing calls this directly
no test coverage detected