mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
PixelPaint: Convert to east-const style
This commit is contained in:
parent
242742b6c2
commit
29e80178a8
23 changed files with 72 additions and 72 deletions
|
@ -25,7 +25,7 @@ BucketTool::~BucketTool()
|
|||
{
|
||||
}
|
||||
|
||||
static float color_distance_squared(const Gfx::Color& lhs, const Gfx::Color& rhs)
|
||||
static float color_distance_squared(Gfx::Color const& lhs, Gfx::Color const& rhs)
|
||||
{
|
||||
int a = rhs.red() - lhs.red();
|
||||
int b = rhs.green() - lhs.green();
|
||||
|
@ -33,7 +33,7 @@ static float color_distance_squared(const Gfx::Color& lhs, const Gfx::Color& rhs
|
|||
return (a * a + b * b + c * c) / (255.0f * 255.0f);
|
||||
}
|
||||
|
||||
static void flood_fill(Gfx::Bitmap& bitmap, const Gfx::IntPoint& start_position, Color target_color, Color fill_color, int threshold)
|
||||
static void flood_fill(Gfx::Bitmap& bitmap, Gfx::IntPoint const& start_position, Color target_color, Color fill_color, int threshold)
|
||||
{
|
||||
VERIFY(bitmap.bpp() == 32);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue