mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
This commit is contained in:
parent
e011eafd37
commit
27fae78335
63 changed files with 142 additions and 142 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
namespace PixelPaint {
|
||||
|
||||
ErrorOr<NonnullRefPtr<Image>> Image::try_create_with_size(Gfx::IntSize const& size)
|
||||
ErrorOr<NonnullRefPtr<Image>> Image::try_create_with_size(Gfx::IntSize size)
|
||||
{
|
||||
VERIFY(!size.is_empty());
|
||||
|
||||
|
@ -34,7 +34,7 @@ ErrorOr<NonnullRefPtr<Image>> Image::try_create_with_size(Gfx::IntSize const& si
|
|||
return adopt_nonnull_ref_or_enomem(new (nothrow) Image(size));
|
||||
}
|
||||
|
||||
Image::Image(Gfx::IntSize const& size)
|
||||
Image::Image(Gfx::IntSize size)
|
||||
: m_size(size)
|
||||
, m_selection(*this)
|
||||
{
|
||||
|
@ -548,7 +548,7 @@ Optional<Gfx::IntRect> Image::nonempty_content_bounding_rect() const
|
|||
return bounding_rect;
|
||||
}
|
||||
|
||||
void Image::resize(Gfx::IntSize const& new_size, Gfx::Painter::ScalingMode scaling_mode)
|
||||
void Image::resize(Gfx::IntSize new_size, Gfx::Painter::ScalingMode scaling_mode)
|
||||
{
|
||||
float scale_x = 1.0f;
|
||||
float scale_y = 1.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue