Skip to content

Commit 92199a0

Browse files
Fix warnings
1 parent 7e3d569 commit 92199a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/AMBTableViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ typedef NSString * (^AMBTableViewSectionTitleBlock)(AMBTableViewSection * sectio
135135

136136
/// A block where any aspect of the section can be changed and rows can set to be shown/hidden,
137137
/// reloaded, etc.
138-
/// @param The section to be updated.
138+
/// @param section The section to be updated.
139139
typedef void (^AMBTableViewSectionUpdateBlock) (AMBTableViewSection * section);
140140

141141
/// Calculate the height of the cell corresponding to a given section object.

Source/AMBTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ - (NSString *)description
437437

438438
- (void)setObjects:(NSArray *)objects
439439
{
440-
_mutableObjects = [NSMutableArray arrayWithArray:objects];
440+
_mutableObjects = objects ? [NSMutableArray arrayWithArray:objects] : [NSMutableArray new];
441441
_hiddenObjectsMutableIndexSet = [NSMutableIndexSet indexSet];
442442
[self updateVisibleObjects];
443443

0 commit comments

Comments
 (0)