summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-10-25 23:22:34 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-10-26 15:16:15 -0700
commit62647a013ff398c28c8a2c2f37c2737006181302 (patch)
treea397c590b79d27574ad849f370f6ba759718a2df
parentdc884cd6c30ecb8121996d2d22ccba77bf039df6 (diff)
downloadqtlocation-mapboxgl-62647a013ff398c28c8a2c2f37c2737006181302.tar.gz
[ios, macos] Corrected MGLStyleValue inheritance
MGLStyleConstantValue and MGLStyleFunction now inherit from MGLStyleValue with a generic argument matching the child class’s own generic argument. Fixes #6823.
-rw-r--r--platform/darwin/src/MGLStyleValue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLStyleValue.h b/platform/darwin/src/MGLStyleValue.h
index eb0eaf5340..ab5e76bbe3 100644
--- a/platform/darwin/src/MGLStyleValue.h
+++ b/platform/darwin/src/MGLStyleValue.h
@@ -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
@@ -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