diff options
Diffstat (limited to 'src/mbgl/style/light.cpp')
-rw-r--r-- | src/mbgl/style/light.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/style/light.cpp b/src/mbgl/style/light.cpp index a10e693073..2ef4c2f940 100644 --- a/src/mbgl/style/light.cpp +++ b/src/mbgl/style/light.cpp @@ -17,10 +17,9 @@ namespace style { static LightObserver nullObserver; -Light::Light() - : impl(makeMutable<Impl>()), - observer(&nullObserver) { -} +Light::Light(Immutable<Light::Impl> impl_) : impl(std::move(impl_)), observer(&nullObserver) {} + +Light::Light() : Light(makeMutable<Impl>()) {} Light::~Light() = default; |