| 413 | } |
| 414 | |
| 415 | void Geocoder::GoInViewport() |
| 416 | { |
| 417 | TRACE(GoInViewport); |
| 418 | |
| 419 | if (m_params.GetNumTokens() == 0) |
| 420 | return; |
| 421 | |
| 422 | vector<MwmInfoPtr> infos; |
| 423 | m_dataSource.GetMwmsInfo(infos); |
| 424 | |
| 425 | base::EraseIf(infos, [this](MwmInfoPtr const & info) { return !m_params.m_pivot.IsIntersect(info->m_bordersRect); }); |
| 426 | |
| 427 | GoImpl(infos, true /* inViewport */); |
| 428 | } |
| 429 | |
| 430 | void Geocoder::Finish(bool cancelled) |
| 431 | { |
no test coverage detected