Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-08-10 12:36:13 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:28 +0300
commitf88c9b28435c3a0aa85b9721eb1e362468b2fca2 (patch)
treeb617757f50e4a52b67b62e29df1b5d6dbe3f3e14 /iphone/Maps/Classes/MWMPlacePageInfoCell.mm
parentde370da0c3587fa8b9cd036a53a9b09e2ca02b98 (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.mm2
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];
}