mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:22:44 +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
					
				
					 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
	
	 Timothy Flynn
						Timothy Flynn