mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 23:12:56 +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
|
@ -46,7 +46,7 @@ int ClassViewModel::row_count(const GUI::ModelIndex& index) const
|
|||
|
||||
GUI::Variant ClassViewModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
|
||||
{
|
||||
auto* node = static_cast<const ClassViewNode*>(index.internal_data());
|
||||
auto* node = static_cast<ClassViewNode const*>(index.internal_data());
|
||||
switch (role) {
|
||||
case GUI::ModelRole::Display: {
|
||||
return node->name;
|
||||
|
@ -68,7 +68,7 @@ GUI::ModelIndex ClassViewModel::parent_index(const GUI::ModelIndex& index) const
|
|||
{
|
||||
if (!index.is_valid())
|
||||
return {};
|
||||
auto* child = static_cast<const ClassViewNode*>(index.internal_data());
|
||||
auto* child = static_cast<ClassViewNode const*>(index.internal_data());
|
||||
auto* parent = child->parent;
|
||||
if (parent == nullptr)
|
||||
return {};
|
||||
|
@ -92,7 +92,7 @@ GUI::ModelIndex ClassViewModel::index(int row, int column, const GUI::ModelIndex
|
|||
{
|
||||
if (!parent_index.is_valid())
|
||||
return create_index(row, column, &m_root_scope[row]);
|
||||
auto* parent = static_cast<const ClassViewNode*>(parent_index.internal_data());
|
||||
auto* parent = static_cast<ClassViewNode const*>(parent_index.internal_data());
|
||||
auto* child = &parent->children[row];
|
||||
return create_index(row, column, child);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue