Skip to content

Commit

Permalink
Fix nullability annotations in NITableViewModel (jverkoey#701)
Browse files Browse the repository at this point in the history
These were failing with the following error:

```
nimbus/src/models/src/NITableViewModel.m:61:16: error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull]
  return [self initWithDelegate:nil];
```
  • Loading branch information
featherless authored May 8, 2019
1 parent c78cc48 commit 0ffd414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/src/NITableViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ typedef enum {
#pragma mark Creating Table View Models

// Designated initializer.
- (nonnull id)initWithDelegate:(nonnull id<NITableViewModelDelegate>)delegate;
- (nonnull id)initWithListArray:(nonnull NSArray *)sectionedArray delegate:(nonnull id<NITableViewModelDelegate>)delegate;
- (nonnull id)initWithDelegate:(nullable id<NITableViewModelDelegate>)delegate NS_DESIGNATED_INITIALIZER;
- (nonnull id)initWithListArray:(nonnull NSArray *)sectionedArray delegate:(nullable id<NITableViewModelDelegate>)delegate;
// Each NSString in the array starts a new section. Any other object is a new row (with exception of certain model-specific objects).
- (nonnull id)initWithSectionedArray:(nonnull NSArray *)sectionedArray delegate:(nonnull id<NITableViewModelDelegate>)delegate;
- (nonnull id)initWithSectionedArray:(nonnull NSArray *)sectionedArray delegate:(nullable id<NITableViewModelDelegate>)delegate;

#pragma mark Accessing Objects

Expand Down

0 comments on commit 0ffd414

Please sign in to comment.