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/CloneTool.cpp | |
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/CloneTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/CloneTool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp index 56805197b1..3926915cb8 100644 --- a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp @@ -16,7 +16,7 @@ namespace PixelPaint { -void CloneTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color const&, Gfx::IntPoint const& point) +void CloneTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color, Gfx::IntPoint const& point) { if (!m_sample_location.has_value()) return; @@ -45,7 +45,7 @@ void CloneTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color const&, Gfx::IntPoint } } -void CloneTool::draw_line(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::IntPoint const& start, Gfx::IntPoint const& end) +void CloneTool::draw_line(Gfx::Bitmap& bitmap, Gfx::Color color, Gfx::IntPoint const& start, Gfx::IntPoint const& end) { if (!m_sample_location.has_value()) return; |