Browse Source

SystemMonitor: Remove an unnecessarily specific inline capacity

Dawid Wolosowicz 3 years ago
parent
commit
ec7879f628

+ 2 - 2
Userland/Applications/SystemMonitor/ProcessModel.cpp

@@ -313,9 +313,9 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
     return {};
     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) {
     for (auto& thread : m_threads) {
         if (string_matches(thread.value->current_state.name, searching, flags)) {
         if (string_matches(thread.value->current_state.name, searching, flags)) {

+ 1 - 1
Userland/Applications/SystemMonitor/ProcessModel.h

@@ -61,7 +61,7 @@ public:
     virtual String column_name(int column) const override;
     virtual String column_name(int column) const override;
     virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
     virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
     virtual bool is_searchable() const override { return true; }
     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; }
     virtual bool is_column_sortable(int column_index) const override { return column_index != Column::Icon; }
     void update();
     void update();