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/MWMPlacePageInfoCell.mm | |
parent | de370da0c3587fa8b9cd036a53a9b09e2ca02b98 (diff) |
[ios] Replace [NSString stringWithUTF8String:str] with modern Objective-C 2.0 syntax (@(str)).
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageInfoCell.mm')
-rw-r--r-- | iphone/Maps/Classes/MWMPlacePageInfoCell.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageInfoCell.mm b/iphone/Maps/Classes/MWMPlacePageInfoCell.mm index b035806977..c67754d0b5 100644 --- a/iphone/Maps/Classes/MWMPlacePageInfoCell.mm +++ b/iphone/Maps/Classes/MWMPlacePageInfoCell.mm @@ -95,7 +95,7 @@ extern NSString * const kUserDefaultsLatLonAsDMSKey; NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; BOOL const showLatLonAsDMS = [defaults boolForKey:kUserDefaultsLatLonAsDMSKey]; m2::PointD const point = self.currentEntity.point; - [self.textContainer setText:[NSString stringWithUTF8String:(showLatLonAsDMS ? MeasurementUtils::FormatLatLon(point.x, point.y).c_str() : MeasurementUtils::FormatLatLonAsDMS(point.x, point.y, 2).c_str())]]; + [self.textContainer setText:@((showLatLonAsDMS ? MeasurementUtils::FormatLatLon(point.x, point.y).c_str() : MeasurementUtils::FormatLatLonAsDMS(point.x, point.y, 2).c_str()))]; [defaults setBool:!showLatLonAsDMS forKey:kUserDefaultsLatLonAsDMSKey]; [defaults synchronize]; } |