mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Merge pull request #289 from lioncash/self-assign
result: Check against self-assignment in ResultVal's copy assignment operator
This commit is contained in:
		
						commit
						4900c51864
					
				@ -200,6 +200,9 @@ public:
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ResultVal& operator=(const ResultVal& o) {
 | 
					    ResultVal& operator=(const ResultVal& o) {
 | 
				
			||||||
 | 
					        if (this == &o) {
 | 
				
			||||||
 | 
					            return *this;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        if (!empty()) {
 | 
					        if (!empty()) {
 | 
				
			||||||
            if (!o.empty()) {
 | 
					            if (!o.empty()) {
 | 
				
			||||||
                object = o.object;
 | 
					                object = o.object;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user