| 14 | } |
| 15 | |
| 16 | void EverywhereSearchCallback::operator()(Results const & results) |
| 17 | { |
| 18 | size_t const prevSize = m_productInfo.size(); |
| 19 | size_t const currSize = results.GetCount(); |
| 20 | ASSERT_LESS_OR_EQUAL(prevSize, currSize, ()); |
| 21 | |
| 22 | for (size_t i = prevSize; i < currSize; ++i) |
| 23 | m_productInfo.push_back(m_delegate.GetProductInfo(results[i])); |
| 24 | |
| 25 | m_delegate.RunUITask([onResults = m_onResults, results, productInfo = m_productInfo]() mutable |
| 26 | { onResults(std::move(results), std::move(productInfo)); }); |
| 27 | } |
| 28 | } // namespace search |
nothing calls this directly
no test coverage detected