diff options
author | Andreas Kling <kling@serenityos.org> | 2023-02-19 23:13:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-21 00:54:04 +0100 |
commit | 053afbf2d17aaa14a09d0ef377e6396429e9b371 (patch) | |
tree | 2e4e61cb80d4ff43659a484849c6ce33b4ae1dbf | |
parent | 2530b301db15967bfc9b358edb5861833b1be290 (diff) | |
download | serenity-053afbf2d17aaa14a09d0ef377e6396429e9b371.zip |
PixelPaint: Make Filter::apply() non-virtual and non-const
It didn't need to be either of these things.
-rw-r--r-- | Userland/Applications/PixelPaint/Filters/Filter.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/Filters/Filter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/Filters/Filter.cpp b/Userland/Applications/PixelPaint/Filters/Filter.cpp index c80f76b19c..e62424acfa 100644 --- a/Userland/Applications/PixelPaint/Filters/Filter.cpp +++ b/Userland/Applications/PixelPaint/Filters/Filter.cpp @@ -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; diff --git a/Userland/Applications/PixelPaint/Filters/Filter.h b/Userland/Applications/PixelPaint/Filters/Filter.h index 205e1b557f..de25a68e21 100644 --- a/Userland/Applications/PixelPaint/Filters/Filter.h +++ b/Userland/Applications/PixelPaint/Filters/Filter.h @@ -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(); |