diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 19:43:46 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | bbc149ebb935532c9382278ed98cf9fe8a616422 (patch) | |
tree | bf9b37fb4947579351f57de87e1377da8413e097 /Userland/Applications/PixelPaint/Tools/EraseTool.h | |
parent | f76c7f3788242e8b486c51cd251e6c59179e33dd (diff) | |
download | serenity-bbc149ebb935532c9382278ed98cf9fe8a616422.zip |
Meta+Userland: Pass Gfx::Color by value
Gfx::Color is always 4 bytes (it's just a wrapper over u32) it's less
work just to pass the color directly.
This also updates IPCCompiler to prevent from generating
Gfx::Color const &, which makes replacement easier.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/EraseTool.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/EraseTool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/EraseTool.h b/Userland/Applications/PixelPaint/Tools/EraseTool.h index 41b6371d46..bee0ad308d 100644 --- a/Userland/Applications/PixelPaint/Tools/EraseTool.h +++ b/Userland/Applications/PixelPaint/Tools/EraseTool.h @@ -24,7 +24,7 @@ public: protected: virtual Color color_for(GUI::MouseEvent const& event) override; - virtual void draw_point(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::IntPoint const& point) override; + virtual void draw_point(Gfx::Bitmap& bitmap, Gfx::Color color, Gfx::IntPoint const& point) override; virtual NonnullRefPtr<Gfx::Bitmap> build_cursor() override; private: |