[core] Immutable Impls

This commit is contained in:
John Firebaugh
2017-04-25 18:20:26 -07:00
parent d3f23b83d4
commit c2a5894f2d
124 changed files with 2592 additions and 1487 deletions

View File

@@ -5,7 +5,7 @@ namespace mbgl {
namespace style {
std::unique_ptr<RenderLayer> BackgroundLayer::Impl::createRenderLayer() const {
return std::make_unique<RenderBackgroundLayer>(*this);
return std::make_unique<RenderBackgroundLayer>(staticImmutableCast<BackgroundLayer::Impl>(immutableFromThis()));
}
} // namespace style