mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Use compile-time Unicode string conversion
Thanks to this syntax introduced in C++11, this reduces the amount of work that needs to be performed at run-time while making the code more terse.
This commit is contained in:
		
							parent
							
								
									16a93563bf
								
							
						
					
					
						commit
						e9f723006a
					
				
					 11 changed files with 19 additions and 19 deletions
				
			
		|  | @ -37,7 +37,7 @@ | |||
| 
 | ||||
| void BitMapEditor::setup(const Ref<BitMap> &p_bitmap) { | ||||
| 	texture_rect->set_texture(ImageTexture::create_from_image(p_bitmap->convert_to_image())); | ||||
| 	size_label->set_text(vformat(String::utf8("%s×%s"), p_bitmap->get_size().width, p_bitmap->get_size().height)); | ||||
| 	size_label->set_text(vformat(U"%s×%s", p_bitmap->get_size().width, p_bitmap->get_size().height)); | ||||
| } | ||||
| 
 | ||||
| BitMapEditor::BitMapEditor() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hugo Locurcio
						Hugo Locurcio