1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibGUI: Remove an unnecessarily specific inline capacity

This commit is contained in:
Dawid Wolosowicz 2021-09-07 16:16:02 +02:00 committed by Ali Mohammad Pur
parent 8419eef85e
commit 2d91ba2737
8 changed files with 10 additions and 10 deletions

View file

@ -78,9 +78,9 @@ public:
}
virtual bool is_searchable() const override { return true; }
virtual Vector<GUI::ModelIndex, 1> matches(StringView const& searching, unsigned flags, GUI::ModelIndex const&) override
virtual Vector<GUI::ModelIndex> matches(StringView const& searching, unsigned flags, GUI::ModelIndex const&) override
{
Vector<GUI::ModelIndex, 1> found_indices;
Vector<GUI::ModelIndex> found_indices;
if constexpr (IsTwoDimensional) {
for (auto it = m_data.begin(); it != m_data.end(); ++it) {
for (auto it2d = (*it).begin(); it2d != (*it).end(); ++it2d) {