MCPcopy Create free account
hub / github.com/comaps/comaps / CancelSearch

Method CancelSearch

libs/map/search_api.cpp:281–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void SearchAPI::CancelSearch(Mode mode)
282{
283 ASSERT_NOT_EQUAL(mode, Mode::Count, ());
284
285 if (mode == Mode::Viewport)
286 m_delegate.ClearViewportSearchResults();
287
288 auto & intent = m_searchIntents[static_cast<size_t>(mode)];
289 intent.m_params.Clear();
290 CancelQuery(intent.m_handle);
291}
292
293void SearchAPI::CancelAllSearches()
294{

Calls 3

CancelQueryFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected