Fixed iOS build

This commit is contained in:
r.kuznetsov 2018-01-10 17:56:33 +03:00 committed by Ilya Grechuhin
parent 1bb52bee14
commit 2802064b30
4 changed files with 4 additions and 4 deletions

View file

@ -183,7 +183,7 @@ struct Callback
type == ItemType::Attractions ? m_model.GetAttractionAt(index) : m_model.GetCafeAt(index);
MWMRoutePoint * pt = [[MWMRoutePoint alloc] initWithPoint:item.GetFeatureCenter()
title:@(item.GetString().c_str())
subtitle:@(item.GetFeatureType().c_str())
subtitle:@(item.GetFeatureTypeName().c_str())
type:MWMRoutePointTypeFinish
intermediateIndex:0];
[MWMRouter setType:MWMRouterTypePedestrian];

View file

@ -344,7 +344,7 @@ string GetDistance(m2::PointD const & from, m2::PointD const & to)
auto const & pt = type == ItemType::Attractions ? model.GetAttractionReferencePoint()
: model.GetCafeReferencePoint();
[cell configWithTitle:@(sr.GetString().c_str())
subtitle:@(sr.GetFeatureType().c_str())
subtitle:@(sr.GetFeatureTypeName().c_str())
distance:@(GetDistance(pt, sr.GetFeatureCenter()).c_str())
tap:^{
[self.delegate routeToItem:type atIndex:indexPath.row];

View file

@ -30,7 +30,7 @@
isAvailable:(BOOL)isAvailable
{
[super config:result];
self.typeLabel.text = @(result.GetFeatureType().c_str()).capitalizedString;
self.typeLabel.text = @(result.GetFeatureTypeName().c_str()).capitalizedString;
auto const & ratingStr = result.GetHotelRating();
self.ratingLabel.text =
ratingStr.empty() ? @"" : [NSString stringWithFormat:L(@"place_page_booking_rating"),

View file

@ -150,7 +150,7 @@
case MWMSearchItemTypeSuggestion:
{
auto const & suggestion = [MWMSearch resultWithContainerIndex:containerIndex];
NSString * suggestionString = @(suggestion.GetSuggestionString());
NSString * suggestionString = @(suggestion.GetSuggestionString().c_str());
[Statistics logEvent:kStatEventName(kStatSearch, kStatSelectResult)
withParameters:@{kStatValue : suggestionString, kStatScreen : kStatSearch}];
[delegate searchText:suggestionString forInputLocale:nil];