[iOS] Fixed compilation with new XCode.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-04-27 14:55:31 +03:00 committed by Viktor Govako
parent 61ea502ad0
commit 2862d4302e

View file

@ -342,15 +342,15 @@ void registerCellsForTableView(std::vector<MWMEditorCellType> const & cells, UIT
if (!cell)
{
cell = [NSBundle.mainBundle loadWithViewClass:cls owner:nil options:nil].firstObject;
self.offscreenCells[cls] = cell;
self.offscreenCells[(id<NSCopying>)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<MWMEditorCellType> const & cells, UIT
- (void)cell:(MWMNoteCell *)cell didChangeSizeAndText:(NSString *)text
{
self.offscreenCells[cellClass(MWMEditorCellTypeNote)] = cell;
self.offscreenCells[(id<NSCopying>)cellClass(MWMEditorCellTypeNote)] = cell;
self.note = text;
[UIView setAnimationsEnabled:NO];
[self.tableView refresh];