mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #900 from lioncash/init
math_util: Always initialize members of Rectangle
This commit is contained in:
		
						commit
						ef9433411d
					
				@ -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