mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:52:44 +00:00 
			
		
		
		
	LibGUI: Use String::formatted() and String::number() more
This commit is contained in:
		
							parent
							
								
									5e157eaf37
								
							
						
					
					
						commit
						f181ddb56a
					
				
					 9 changed files with 17 additions and 20 deletions
				
			
		|  | @ -94,8 +94,8 @@ void IconImpl::set_bitmap_for_size(int size, RefPtr<Gfx::Bitmap>&& bitmap) | |||
| 
 | ||||
| Icon Icon::default_icon(const StringView& name) | ||||
| { | ||||
|     auto bitmap16 = Gfx::Bitmap::load_from_file(String::format("/res/icons/16x16/%s.png", name.to_string().characters())); | ||||
|     auto bitmap32 = Gfx::Bitmap::load_from_file(String::format("/res/icons/32x32/%s.png", name.to_string().characters())); | ||||
|     auto bitmap16 = Gfx::Bitmap::load_from_file(String::formatted("/res/icons/16x16/{}.png", name)); | ||||
|     auto bitmap32 = Gfx::Bitmap::load_from_file(String::formatted("/res/icons/32x32/{}.png", name)); | ||||
|     return Icon(move(bitmap16), move(bitmap32)); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling