mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Run clang-format on everything.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <LibGUI/GModel.h>
|
||||
#include <LibGUI/GAbstractView.h>
|
||||
#include <LibGUI/GModel.h>
|
||||
|
||||
GModel::GModel()
|
||||
{
|
||||
@@ -29,7 +29,7 @@ void GModel::did_update()
|
||||
{
|
||||
if (on_model_update)
|
||||
on_model_update(*this);
|
||||
for_each_view([] (auto& view) {
|
||||
for_each_view([](auto& view) {
|
||||
view.did_update_model();
|
||||
});
|
||||
}
|
||||
@@ -41,7 +41,7 @@ void GModel::set_selected_index(const GModelIndex& index)
|
||||
m_selected_index = index;
|
||||
if (on_selection_changed)
|
||||
on_selection_changed(index);
|
||||
for_each_view([] (auto& view) {
|
||||
for_each_view([](auto& view) {
|
||||
view.did_update_selection();
|
||||
});
|
||||
}
|
||||
@@ -54,9 +54,9 @@ GModelIndex GModel::create_index(int row, int column, void* data) const
|
||||
GModelIndex GModel::sibling(int row, int column, const GModelIndex& parent) const
|
||||
{
|
||||
if (!parent.is_valid())
|
||||
return { };
|
||||
return {};
|
||||
int row_count = this->row_count(parent);
|
||||
if (row < 0 || row > row_count)
|
||||
return { };
|
||||
return {};
|
||||
return index(row, column, parent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user