mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWebView: Rename find_search_engine to find_search_engine_by_name
We will also need to search by URL in the Serenity chrome.
This commit is contained in:
parent
d5ca8209bf
commit
c8c3d00615
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/trflynn89
Commit: c8c3d00615
Pull-request: https://github.com/SerenityOS/serenity/pull/21566
4 changed files with 5 additions and 5 deletions
|
@ -27,13 +27,13 @@ ReadonlySpan<SearchEngine> search_engines()
|
|||
|
||||
SearchEngine const& default_search_engine()
|
||||
{
|
||||
static auto default_engine = find_search_engine("Google"sv);
|
||||
static auto default_engine = find_search_engine_by_name("Google"sv);
|
||||
VERIFY(default_engine.has_value());
|
||||
|
||||
return *default_engine;
|
||||
}
|
||||
|
||||
Optional<SearchEngine const&> find_search_engine(StringView name)
|
||||
Optional<SearchEngine const&> find_search_engine_by_name(StringView name)
|
||||
{
|
||||
auto it = AK::find_if(builtin_search_engines.begin(), builtin_search_engines.end(),
|
||||
[&](auto const& engine) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue