Fix broken Point2 inequality operator
This commit is contained in:
		
							parent
							
								
									5909474603
								
							
						
					
					
						commit
						2d63375daa
					
				| @ -41,7 +41,7 @@ bool Point2::operator==(const Point2& rhs) const | |||||||
| 
 | 
 | ||||||
| bool Point2::operator!=(const Point2& rhs) const | bool Point2::operator!=(const Point2& rhs) const | ||||||
| { | { | ||||||
|     return !(x == y); |     return !(*this == rhs); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Point2 Point2::operator+(const Point2& rhs) const | Point2 Point2::operator+(const Point2& rhs) const | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user