forked from organicmaps/organicmaps
[new downloader] git-clang-format.
This commit is contained in:
parent
a46d481693
commit
ed81964194
3 changed files with 7 additions and 3 deletions
|
@ -22,7 +22,8 @@ extern NSString * const kPlaceCellIdentifier;
|
|||
self = [super initWithDelegate:delegate];
|
||||
if (self)
|
||||
{
|
||||
NSMutableOrderedSet<NSString *> * nsSearchCountryIds = [NSMutableOrderedSet orderedSetWithCapacity:results.m_results.size()];
|
||||
NSMutableOrderedSet<NSString *> * nsSearchCountryIds =
|
||||
[NSMutableOrderedSet orderedSetWithCapacity:results.m_results.size()];
|
||||
NSMutableDictionary<NSString *, NSString *> * nsSearchResults = [@{} mutableCopy];
|
||||
for (auto const & result : results.m_results)
|
||||
{
|
||||
|
|
|
@ -1095,7 +1095,8 @@ bool Framework::SearchInDownloader(DownloaderSearchParams const & params)
|
|||
TCountryId const & countryId = CountryInfoGetter().GetRegionCountryId(mercator);
|
||||
if (countryId == kInvalidCountryId)
|
||||
continue;
|
||||
downloaderSearchResults.m_results.emplace_back(countryId, it->GetString() /* m_matchedName */);
|
||||
downloaderSearchResults.m_results.emplace_back(countryId,
|
||||
it->GetString() /* m_matchedName */);
|
||||
}
|
||||
downloaderSearchResults.m_query = params.m_query;
|
||||
downloaderSearchResults.m_endMarker = results.IsEndMarker();
|
||||
|
|
|
@ -11,7 +11,9 @@ namespace storage
|
|||
struct DownloaderSearchResult
|
||||
{
|
||||
DownloaderSearchResult(TCountryId const & countryId, string const & matchedName)
|
||||
: m_countryId(countryId), m_matchedName(matchedName) {}
|
||||
: m_countryId(countryId), m_matchedName(matchedName)
|
||||
{
|
||||
}
|
||||
|
||||
TCountryId m_countryId;
|
||||
/// \brief |m_matchedName| is a name of found feature in case of searching in World.mwm
|
||||
|
|
Loading…
Add table
Reference in a new issue