1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:08:13 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -16,12 +16,12 @@ Icon::Icon()
{
}
Icon::Icon(const IconImpl& impl)
Icon::Icon(IconImpl const& impl)
: m_impl(const_cast<IconImpl&>(impl))
{
}
Icon::Icon(const Icon& other)
Icon::Icon(Icon const& other)
: m_impl(other.m_impl)
{
}
@ -46,14 +46,14 @@ Icon::Icon(RefPtr<Gfx::Bitmap>&& bitmap1, RefPtr<Gfx::Bitmap>&& bitmap2)
}
}
const Gfx::Bitmap* IconImpl::bitmap_for_size(int size) const
Gfx::Bitmap const* IconImpl::bitmap_for_size(int size) const
{
auto it = m_bitmaps.find(size);
if (it != m_bitmaps.end())
return it->value.ptr();
int best_diff_so_far = INT32_MAX;
const Gfx::Bitmap* best_fit = nullptr;
Gfx::Bitmap const* best_fit = nullptr;
for (auto& it : m_bitmaps) {
int abs_diff = abs(it.key - size);
if (abs_diff < best_diff_so_far) {