Chromium Code Reviews| Index: ui/gfx/vector2d_f.h |
| diff --git a/ui/gfx/vector2d_f.h b/ui/gfx/vector2d_f.h |
| index fdd3a9e30841cc0681ebaf509d0a9d1ba17dde4a..685c15d79023327c4724a34ecf3d47a492e3a0af 100644 |
| --- a/ui/gfx/vector2d_f.h |
| +++ b/ui/gfx/vector2d_f.h |
| @@ -70,6 +70,10 @@ inline bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) { |
| return lhs.x() == rhs.x() && lhs.y() == rhs.y(); |
| } |
| +inline bool operator!=(const Vector2dF& lhs, const Vector2dF& rhs) { |
| + return lhs.x() != rhs.x() || lhs.y() != rhs.y(); |
|
joth
2013/06/18 03:19:50
return !(operator==(lhs, rhs));
I'm sure there's
mkosiba (inactive)
2013/06/18 18:09:25
Done.
|
| +} |
| + |
| inline Vector2dF operator-(const Vector2dF& v) { |
| return Vector2dF(-v.x(), -v.y()); |
| } |