mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 15:05:09 +00:00
SystemMonitor: Remove an unnecessarily specific inline capacity
This commit is contained in:
parent
2d91ba2737
commit
ec7879f628
2 changed files with 3 additions and 3 deletions
|
@ -313,9 +313,9 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
|||
return {};
|
||||
}
|
||||
|
||||
Vector<GUI::ModelIndex, 1> ProcessModel::matches(const StringView& searching, unsigned flags, const GUI::ModelIndex&)
|
||||
Vector<GUI::ModelIndex> ProcessModel::matches(const StringView& searching, unsigned flags, const GUI::ModelIndex&)
|
||||
{
|
||||
Vector<GUI::ModelIndex, 1> found_indices;
|
||||
Vector<GUI::ModelIndex> found_indices;
|
||||
|
||||
for (auto& thread : m_threads) {
|
||||
if (string_matches(thread.value->current_state.name, searching, flags)) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
virtual String column_name(int column) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
|
||||
virtual bool is_searchable() const override { return true; }
|
||||
virtual Vector<GUI::ModelIndex, 1> matches(const StringView&, unsigned = MatchesFlag::AllMatching, const GUI::ModelIndex& = GUI::ModelIndex()) override;
|
||||
virtual Vector<GUI::ModelIndex> matches(const StringView&, unsigned = MatchesFlag::AllMatching, const GUI::ModelIndex& = GUI::ModelIndex()) override;
|
||||
virtual bool is_column_sortable(int column_index) const override { return column_index != Column::Icon; }
|
||||
void update();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue