mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
PixelPaint: Make Filter::apply() non-virtual and non-const
It didn't need to be either of these things.
This commit is contained in:
parent
2530b301db
commit
053afbf2d1
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ ErrorOr<RefPtr<GUI::Widget>> Filter::get_settings_widget()
|
||||||
return m_settings_widget.ptr();
|
return m_settings_widget.ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Filter::apply() const
|
void Filter::apply()
|
||||||
{
|
{
|
||||||
if (!m_editor)
|
if (!m_editor)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Filter : public RefCounted<Filter> {
|
||||||
friend class FilterApplicationCommand;
|
friend class FilterApplicationCommand;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void apply() const;
|
void apply();
|
||||||
virtual void apply(Gfx::Bitmap& target_bitmap, Gfx::Bitmap const& source_bitmap) const = 0;
|
virtual void apply(Gfx::Bitmap& target_bitmap, Gfx::Bitmap const& source_bitmap) const = 0;
|
||||||
|
|
||||||
virtual ErrorOr<RefPtr<GUI::Widget>> get_settings_widget();
|
virtual ErrorOr<RefPtr<GUI::Widget>> get_settings_widget();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue