mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibWebView: Generate the Public Suffix List as a compile-time array
No need for this to be a vector on the heap.
This commit is contained in:
		
							parent
							
								
									ae3e0d97b5
								
							
						
					
					
						commit
						d4615c47a4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -91,7 +91,7 @@ ErrorOr<void> generate_implementation_file(Core::InputBufferedFile& input, Core: | ||||||
| 
 | 
 | ||||||
| namespace WebView { | namespace WebView { | ||||||
| 
 | 
 | ||||||
| static Vector<StringView> s_public_suffixes {)~~~"); | static constexpr auto s_public_suffixes = Array {)~~~"); | ||||||
| 
 | 
 | ||||||
|     Array<u8, 1024> buffer {}; |     Array<u8, 1024> buffer {}; | ||||||
| 
 | 
 | ||||||
|  | @ -110,7 +110,7 @@ static Vector<StringView> s_public_suffixes {)~~~"); | ||||||
| 
 | 
 | ||||||
|         generator.set("line", val); |         generator.set("line", val); | ||||||
|         generator.append(R"~~~( |         generator.append(R"~~~( | ||||||
|     {"@line@"sv},)~~~"); |     "@line@"sv,)~~~"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     generator.append(R"~~~( |     generator.append(R"~~~( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn