mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	AK: Make FlyString a little less hilariously unoptimized :^)
This commit is contained in:
		
							parent
							
								
									6e5c9970bf
								
							
						
					
					
						commit
						76bb0fab2d
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -118,7 +118,11 @@ bool FlyString::operator==(const StringView& string) const | ||||||
| 
 | 
 | ||||||
| bool FlyString::operator==(const char* string) const | bool FlyString::operator==(const char* string) const | ||||||
| { | { | ||||||
|     return String(string) == String(m_impl.ptr()); |     if (is_null()) | ||||||
|  |         return !string; | ||||||
|  |     if (!string) | ||||||
|  |         return false; | ||||||
|  |     return !__builtin_strcmp(m_impl->characters(), string); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling