Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] Corrected MGLStyleValue inheritance
Browse files Browse the repository at this point in the history
MGLStyleConstantValue and MGLStyleFunction now inherit from MGLStyleValue with a generic argument matching the child class’s own generic argument.

Fixes #6823.
  • Loading branch information
1ec5 committed Oct 26, 2016
1 parent dc884cd commit 62647a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/darwin/src/MGLStyleValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN
The `MGLStyleConstantValue` class takes a generic parameter `T` that indicates
the Foundation class being wrapped by this class.
*/
@interface MGLStyleConstantValue<T> : MGLStyleValue
@interface MGLStyleConstantValue<T> : MGLStyleValue<T>

#pragma mark Creating a Style Constant Value

Expand Down Expand Up @@ -111,7 +111,7 @@ NS_ASSUME_NONNULL_BEGIN
The `MGLStyleFunction` class takes a generic parameter `T` that indicates the
Foundation class being wrapped by this class.
*/
@interface MGLStyleFunction<T> : MGLStyleValue
@interface MGLStyleFunction<T> : MGLStyleValue<T>

#pragma mark Creating a Style Function

Expand Down

0 comments on commit 62647a0

Please sign in to comment.