Skip to content

Commit

Permalink
Merge pull request #1626 from smartdevicelink/bugfix/issue-1625-sdlim…
Browse files Browse the repository at this point in the history
…agefield-imageresolution-init-nullable

Fix SDLImageField nullability of initializer parameter
  • Loading branch information
joeljfischer committed Apr 17, 2020
2 parents f063aad + e46028d commit fa068d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SmartDeviceLink/SDLImageField.h
Expand Up @@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param name The name identifying this image field
/// @param imageTypeSupported The image data types this field supports
/// @param imageResolution The native resolution of this image field
- (instancetype)initWithName:(SDLImageFieldName)name imageTypeSupported:(NSArray<SDLFileType> *)imageTypeSupported imageResolution:(SDLImageResolution *)imageResolution;
- (instancetype)initWithName:(SDLImageFieldName)name imageTypeSupported:(NSArray<SDLFileType> *)imageTypeSupported imageResolution:(nullable SDLImageResolution *)imageResolution;

@end

Expand Down
2 changes: 1 addition & 1 deletion SmartDeviceLink/SDLImageField.m
Expand Up @@ -38,7 +38,7 @@ - (nullable SDLImageResolution *)imageResolution {
return [self.store sdl_objectForName:SDLRPCParameterNameImageResolution ofClass:SDLImageResolution.class error:nil];
}

- (instancetype)initWithName:(SDLImageFieldName)name imageTypeSupported:(NSArray<SDLFileType> *)imageTypeSupported imageResolution:(SDLImageResolution *)imageResolution {
- (instancetype)initWithName:(SDLImageFieldName)name imageTypeSupported:(NSArray<SDLFileType> *)imageTypeSupported imageResolution:(nullable SDLImageResolution *)imageResolution {
self = [self init];
if (!self) { return nil; }

Expand Down

0 comments on commit fa068d3

Please sign in to comment.