Use unique_ptr for RenderLocationIndicatorImpl

This commit is contained in:
Gali Nelle
2020-04-16 13:31:29 +03:00
committed by galinelle
parent efe604c392
commit cbb3a56c2a
2 changed files with 2 additions and 2 deletions

View File

@@ -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());
}

View File

@@ -23,7 +23,7 @@ private:
void render(PaintParameters &) override;
bool contextDestroyed = false;
RenderLocationIndicatorImpl *renderImpl = nullptr;
std::unique_ptr<RenderLocationIndicatorImpl> renderImpl;
style::LocationIndicatorPaintProperties::Unevaluated unevaluated;
};