diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2013-02-01 04:10:54 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:49:36 +0300 |
commit | cecc3ec8a0bee16acf297dd3b538b7c7ace60556 (patch) | |
tree | 75f6ff324220f6c2fb7b9bd8ece6048990cd6622 /iphone | |
parent | 9fd660485d596e0c89e7a3fd92d3ec0c1fafbb6d (diff) |
[ios] Warning fixes
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/MapsAppDelegate.mm | 2 | ||||
-rw-r--r-- | iphone/Maps/Settings/CountriesViewController.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index e87c794def..7f02da367e 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -33,7 +33,7 @@ void InitLocalizedStrings() + (MapsAppDelegate *) theApp { - return [[UIApplication sharedApplication] delegate]; + return (MapsAppDelegate *)[[UIApplication sharedApplication] delegate]; } - (void) applicationWillTerminate: (UIApplication *) application diff --git a/iphone/Maps/Settings/CountriesViewController.mm b/iphone/Maps/Settings/CountriesViewController.mm index 1d1f62bb19..b684c86bc3 100644 --- a/iphone/Maps/Settings/CountriesViewController.mm +++ b/iphone/Maps/Settings/CountriesViewController.mm @@ -159,7 +159,7 @@ static bool IsOurIndex(TIndex const & theirs, TIndex const & ours) cell.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%s.png", flag.c_str()]]; // do not show status for parent categories - if (cell.reuseIdentifier != @"ParentCell") + if (![cell.reuseIdentifier isEqual: @"ParentCell"]) { storage::TStatus const st = frm.GetCountryStatus(countryIndex); switch (st) |