1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:15:09 +00:00

LibGUI: Make Model::data_matches() take Variant by const-reference

This commit is contained in:
Andreas Kling 2021-02-16 20:08:15 +01:00
parent 36354406db
commit db694491f3
3 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ void ManualModel::update_section_node_on_toggle(const GUI::ModelIndex& index, co
node->set_open(open);
}
TriState ManualModel::data_matches(const GUI::ModelIndex& index, GUI::Variant term) const
TriState ManualModel::data_matches(const GUI::ModelIndex& index, const GUI::Variant& term) const
{
auto view_result = page_view(page_path(index));
if (view_result.is_error() || view_result.value().is_empty())