diff options
Diffstat (limited to 'iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm')
-rw-r--r-- | iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm b/iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm index 0fafc6a38d..678e86bc5b 100644 --- a/iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm +++ b/iphone/Maps/UI/Downloader/DataSources/MWMMapDownloaderDefaultDataSource.mm @@ -1,10 +1,7 @@ #import "MWMMapDownloaderDefaultDataSource.h" #import "MWMCommon.h" -#import "MWMMapDownloaderButtonTableViewCell.h" #import "MWMMapDownloaderLargeCountryTableViewCell.h" #import "MWMMapDownloaderPlaceTableViewCell.h" -#import "MWMStorage.h" -#import "Statistics.h" #import "SwiftBridge.h" #include "Framework.h" @@ -26,7 +23,6 @@ auto compareLocalNames = ^NSComparisonResult(NSString * s1, NSString * s2) } // namespace using namespace storage; -using namespace mwm; @interface MWMMapDownloaderDefaultDataSource () @@ -43,7 +39,11 @@ using namespace mwm; @synthesize isParentRoot = _isParentRoot; -- (instancetype)initForRootCountryId:(NSString *)countryId delegate:(id<MWMMapDownloaderProtocol, MWMMapDownloaderButtonTableViewCellProtocol>)delegate mode:(DownloaderMode)mode +- (instancetype) +initForRootCountryId:(NSString *)countryId + delegate: + (id<MWMMapDownloaderProtocol, MWMMapDownloaderButtonTableViewCellProtocol>)delegate + mode:(MWMMapDownloaderMode)mode { self = [super initWithDelegate:delegate mode:mode]; if (self) @@ -61,7 +61,7 @@ using namespace mwm; TCountriesVec downloadedChildren; TCountriesVec availableChildren; s.GetChildrenInGroups(m_parentId, downloadedChildren, availableChildren, true /* keepAvailableChildren */); - if (self.mode == DownloaderMode::Available) + if (self.mode == MWMMapDownloaderModeAvailable) { self.downloadedCountries = nil; [self configAvailableSections:availableChildren]; |