diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-08-10 12:36:13 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:28 +0300 |
commit | f88c9b28435c3a0aa85b9721eb1e362468b2fca2 (patch) | |
tree | b617757f50e4a52b67b62e29df1b5d6dbe3f3e14 /iphone/Maps/Classes/MWMPlacePageViewManager.mm | |
parent | de370da0c3587fa8b9cd036a53a9b09e2ca02b98 (diff) |
[ios] Replace [NSString stringWithUTF8String:str] with modern Objective-C 2.0 syntax (@(str)).
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageViewManager.mm')
-rw-r--r-- | iphone/Maps/Classes/MWMPlacePageViewManager.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageViewManager.mm b/iphone/Maps/Classes/MWMPlacePageViewManager.mm index 4a98afca0c..655b03deed 100644 --- a/iphone/Maps/Classes/MWMPlacePageViewManager.mm +++ b/iphone/Maps/Classes/MWMPlacePageViewManager.mm @@ -268,7 +268,7 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState) CLLocationCoordinate2D const coord = location.coordinate; GetFramework().GetDistanceAndAzimut(m_userMark->GetUserMark()->GetOrg(), coord.latitude, coord.longitude, north, distance, azimut); - return [NSString stringWithUTF8String:distance.c_str()]; + return @(distance.c_str()); } - (void)onCompassUpdate:(location::CompassInfo const &)info |