1
Fork 0
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:
Andreas Kling 2023-02-19 23:13:48 +01:00
parent 2530b301db
commit 053afbf2d1
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ ErrorOr<RefPtr<GUI::Widget>> Filter::get_settings_widget()
return m_settings_widget.ptr();
}
void Filter::apply() const
void Filter::apply()
{
if (!m_editor)
return;

View file

@ -19,7 +19,7 @@ class Filter : public RefCounted<Filter> {
friend class FilterApplicationCommand;
public:
virtual void apply() const;
void apply();
virtual void apply(Gfx::Bitmap& target_bitmap, Gfx::Bitmap const& source_bitmap) const = 0;
virtual ErrorOr<RefPtr<GUI::Widget>> get_settings_widget();