Use unique_ptr for RenderLocationIndicatorImpl
This commit is contained in:
@@ -709,7 +709,7 @@ inline const LocationIndicatorLayer::Impl& impl(const Immutable<style::Layer::Im
|
||||
|
||||
RenderLocationIndicatorLayer::RenderLocationIndicatorLayer(Immutable<style::LocationIndicatorLayer::Impl> _impl)
|
||||
: RenderLayer(makeMutable<LocationIndicatorLayerProperties>(std::move(_impl))),
|
||||
renderImpl(new RenderLocationIndicatorImpl()),
|
||||
renderImpl(std::make_unique<RenderLocationIndicatorImpl>()),
|
||||
unevaluated(impl(baseImpl).paint.untransitioned()) {
|
||||
assert(gfx::BackendScope::exists());
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ private:
|
||||
void render(PaintParameters &) override;
|
||||
|
||||
bool contextDestroyed = false;
|
||||
RenderLocationIndicatorImpl *renderImpl = nullptr;
|
||||
std::unique_ptr<RenderLocationIndicatorImpl> renderImpl;
|
||||
style::LocationIndicatorPaintProperties::Unevaluated unevaluated;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user