mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue