From 2862d4302ea3230f3b1a593a342718cd5c3894dc Mon Sep 17 00:00:00 2001 From: vng Date: Tue, 27 Apr 2021 14:55:31 +0300 Subject: [PATCH] [iOS] Fixed compilation with new XCode. Signed-off-by: vng --- iphone/Maps/UI/Editor/MWMEditorViewController.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/UI/Editor/MWMEditorViewController.mm b/iphone/Maps/UI/Editor/MWMEditorViewController.mm index 856f015bee..7051789b59 100644 --- a/iphone/Maps/UI/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/UI/Editor/MWMEditorViewController.mm @@ -342,15 +342,15 @@ void registerCellsForTableView(std::vector const & cells, UIT if (!cell) { cell = [NSBundle.mainBundle loadWithViewClass:cls owner:nil options:nil].firstObject; - self.offscreenCells[cls] = cell; + self.offscreenCells[(id)cls] = cell; } return cell; } - (void)configTable { - self.offscreenCells = [NSMutableDictionary dictionary]; - self.invalidCells = [NSMutableArray array]; + [self.offscreenCells removeAllObjects]; + [self.invalidCells removeAllObjects]; m_sections.clear(); m_cells.clear(); @@ -796,7 +796,7 @@ void registerCellsForTableView(std::vector const & cells, UIT - (void)cell:(MWMNoteCell *)cell didChangeSizeAndText:(NSString *)text { - self.offscreenCells[cellClass(MWMEditorCellTypeNote)] = cell; + self.offscreenCells[(id)cellClass(MWMEditorCellTypeNote)] = cell; self.note = text; [UIView setAnimationsEnabled:NO]; [self.tableView refresh];