mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Replace size() == 0 with is_empty().
This commit is contained in:
		
							parent
							
								
									c7ea8614d7
								
							
						
					
					
						commit
						4f4031a675
					
				
					 147 changed files with 300 additions and 300 deletions
				
			
		| 
						 | 
				
			
			@ -650,7 +650,7 @@ void CSharpLanguage::reload_assemblies(bool p_soft_reload) {
 | 
			
		|||
 | 
			
		||||
		for (SelfList<CSharpScript> *elem = script_list.first(); elem; elem = elem->next()) {
 | 
			
		||||
			// Do not reload scripts with only non-collectible instances to avoid disrupting event subscriptions and such.
 | 
			
		||||
			bool is_reloadable = elem->self()->instances.size() == 0;
 | 
			
		||||
			bool is_reloadable = elem->self()->instances.is_empty();
 | 
			
		||||
			for (Object *obj : elem->self()->instances) {
 | 
			
		||||
				ERR_CONTINUE(!obj->get_script_instance());
 | 
			
		||||
				CSharpInstance *csi = static_cast<CSharpInstance *>(obj->get_script_instance());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue