1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

LibGfx: Make the Palette constructor take NNRP<PaletteImpl>

This commit is contained in:
Andreas Kling 2023-03-15 22:55:50 +01:00
parent 5146b9b35e
commit 5e81734520
2 changed files with 3 additions and 3 deletions

View file

@ -22,8 +22,8 @@ PaletteImpl::PaletteImpl(Core::AnonymousBuffer buffer)
{ {
} }
Palette::Palette(PaletteImpl& impl) Palette::Palette(NonnullRefPtr<PaletteImpl> impl)
: m_impl(impl) : m_impl(move(impl))
{ {
} }

View file

@ -59,7 +59,7 @@ private:
class Palette { class Palette {
public: public:
explicit Palette(PaletteImpl&); explicit Palette(NonnullRefPtr<PaletteImpl>);
~Palette() = default; ~Palette() = default;
Color accent() const { return color(ColorRole::Accent); } Color accent() const { return color(ColorRole::Accent); }