Skip to content

Commit

Permalink
[new downloader] git-clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
bykoianko authored and syershov committed Mar 23, 2016
1 parent a46d481 commit ed81964
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ - (instancetype)initWithSearchResults:(DownloaderSearchResults const &)results d
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)
{
Expand Down
3 changes: 2 additions & 1 deletion map/framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion storage/downloader_search_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed81964

Please sign in to comment.