mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	yuzu/CMakeLists: Disable implicit QString->QUrl conversions
Enforces the use of the proper URL resolution functions. e.g. url = some_local_path_string; should actually be: url = QUrl::fromLocalPath(some_local_path_string); etc. This makes it harder to cause bugs when operating with both strings and URLs at the same time.
This commit is contained in:
		
							parent
							
								
									5b93290183
								
							
						
					
					
						commit
						d7d5bffa18
					
				@ -165,6 +165,9 @@ target_compile_definitions(yuzu PRIVATE
 | 
			
		||||
 | 
			
		||||
    # Disable unsafe overloads of QProcess' start() function.
 | 
			
		||||
    -DQT_NO_PROCESS_COMBINED_ARGUMENT_START
 | 
			
		||||
 | 
			
		||||
    # Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
 | 
			
		||||
    -DQT_NO_URL_CAST_FROM_STRING
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (YUZU_ENABLE_COMPATIBILITY_REPORTING)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user