1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +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

@ -26,19 +26,19 @@ public:
void* internal_data() const { return m_internal_data; }
ModelIndex parent() const;
bool is_parent_of(const ModelIndex&) const;
bool is_parent_of(ModelIndex const&) const;
bool operator==(const ModelIndex& other) const
bool operator==(ModelIndex const& other) const
{
return m_model == other.m_model && m_row == other.m_row && m_column == other.m_column && m_internal_data == other.m_internal_data;
}
bool operator!=(const ModelIndex& other) const
bool operator!=(ModelIndex const& other) const
{
return !(*this == other);
}
const Model* model() const { return m_model; }
Model const* model() const { return m_model; }
Variant data(ModelRole = ModelRole::Display) const;
@ -46,7 +46,7 @@ public:
ModelIndex sibling_at_column(int column) const;
private:
ModelIndex(const Model& model, int row, int column, void* internal_data)
ModelIndex(Model const& model, int row, int column, void* internal_data)
: m_model(&model)
, m_row(row)
, m_column(column)
@ -54,7 +54,7 @@ private:
{
}
const Model* m_model { nullptr };
Model const* m_model { nullptr };
int m_row { -1 };
int m_column { -1 };
void* m_internal_data { nullptr };