diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-16 20:08:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-16 20:08:32 +0100 |
commit | db694491f3ec446b6c39eb0fdf57778b6441dd86 (patch) | |
tree | d205a32f577ae1610db955fcc6b5cee55a444d8e /Userland/Applications/Help/ManualModel.cpp | |
parent | 36354406db14ef7f539b9688be01130f51f4ebe3 (diff) | |
download | serenity-db694491f3ec446b6c39eb0fdf57778b6441dd86.zip |
LibGUI: Make Model::data_matches() take Variant by const-reference
Diffstat (limited to 'Userland/Applications/Help/ManualModel.cpp')
-rw-r--r-- | Userland/Applications/Help/ManualModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Help/ManualModel.cpp b/Userland/Applications/Help/ManualModel.cpp index 484b1b22c1..18e22979b1 100644 --- a/Userland/Applications/Help/ManualModel.cpp +++ b/Userland/Applications/Help/ManualModel.cpp @@ -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()) |