mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -16,7 +16,7 @@ void ModelSelection::remove_all_matching(Function<bool(ModelIndex const&)> filte
|
|||
notify_selection_changed();
|
||||
}
|
||||
|
||||
void ModelSelection::set(const ModelIndex& index)
|
||||
void ModelSelection::set(ModelIndex const& index)
|
||||
{
|
||||
VERIFY(index.is_valid());
|
||||
if (m_indices.size() == 1 && m_indices.contains(index))
|
||||
|
@ -26,14 +26,14 @@ void ModelSelection::set(const ModelIndex& index)
|
|||
notify_selection_changed();
|
||||
}
|
||||
|
||||
void ModelSelection::add(const ModelIndex& index)
|
||||
void ModelSelection::add(ModelIndex const& index)
|
||||
{
|
||||
VERIFY(index.is_valid());
|
||||
if (m_indices.set(index) == AK::HashSetResult::InsertedNewEntry)
|
||||
notify_selection_changed();
|
||||
}
|
||||
|
||||
void ModelSelection::add_all(const Vector<ModelIndex>& indices)
|
||||
void ModelSelection::add_all(Vector<ModelIndex> const& indices)
|
||||
{
|
||||
{
|
||||
TemporaryChange notify_change { m_disable_notify, true };
|
||||
|
@ -45,7 +45,7 @@ void ModelSelection::add_all(const Vector<ModelIndex>& indices)
|
|||
notify_selection_changed();
|
||||
}
|
||||
|
||||
void ModelSelection::toggle(const ModelIndex& index)
|
||||
void ModelSelection::toggle(ModelIndex const& index)
|
||||
{
|
||||
VERIFY(index.is_valid());
|
||||
if (m_indices.contains(index))
|
||||
|
@ -55,7 +55,7 @@ void ModelSelection::toggle(const ModelIndex& index)
|
|||
notify_selection_changed();
|
||||
}
|
||||
|
||||
bool ModelSelection::remove(const ModelIndex& index)
|
||||
bool ModelSelection::remove(ModelIndex const& index)
|
||||
{
|
||||
VERIFY(index.is_valid());
|
||||
if (!m_indices.contains(index))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue