mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibGfx: Make the Palette constructor take NNRP<PaletteImpl>
This commit is contained in:
parent
5146b9b35e
commit
5e81734520
2 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@ PaletteImpl::PaletteImpl(Core::AnonymousBuffer buffer)
|
|||
{
|
||||
}
|
||||
|
||||
Palette::Palette(PaletteImpl& impl)
|
||||
: m_impl(impl)
|
||||
Palette::Palette(NonnullRefPtr<PaletteImpl> impl)
|
||||
: m_impl(move(impl))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ private:
|
|||
class Palette {
|
||||
|
||||
public:
|
||||
explicit Palette(PaletteImpl&);
|
||||
explicit Palette(NonnullRefPtr<PaletteImpl>);
|
||||
~Palette() = default;
|
||||
|
||||
Color accent() const { return color(ColorRole::Accent); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue