mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
This commit is contained in:
		
							parent
							
								
									a03c644aed
								
							
						
					
					
						commit
						f2a03468b1
					
				| @ -19,12 +19,12 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start | ||||
| 
 | ||||
| template <class T> | ||||
| struct Rectangle { | ||||
|     T left; | ||||
|     T top; | ||||
|     T right; | ||||
|     T bottom; | ||||
|     T left{}; | ||||
|     T top{}; | ||||
|     T right{}; | ||||
|     T bottom{}; | ||||
| 
 | ||||
|     Rectangle() {} | ||||
|     Rectangle() = default; | ||||
| 
 | ||||
|     Rectangle(T left, T top, T right, T bottom) | ||||
|         : left(left), top(top), right(right), bottom(bottom) {} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash