summaryrefslogtreecommitdiff
path: root/platform/android/src/style/layers/layers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/style/layers/layers.cpp')
-rw-r--r--platform/android/src/style/layers/layers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/src/style/layers/layers.cpp b/platform/android/src/style/layers/layers.cpp
index c0a3acdf42..da870aa0e3 100644
--- a/platform/android/src/style/layers/layers.cpp
+++ b/platform/android/src/style/layers/layers.cpp
@@ -31,12 +31,12 @@ namespace android {
template <typename T>
inline std::unique_ptr<T> to(std::unique_ptr<style::Layer> layer) {
- return std::unique_ptr<T>(layer.release()->as<T>());
+ return std::unique_ptr<T>(static_cast<T*>(layer.release()));
}
template <typename T>
inline T& to(style::Layer& layer) {
- return *layer.as<T>();
+ return static_cast<T&>(layer);
}
template <typename T>