diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 16:20:32 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 16:20:32 +0000 |
commit | 8f3a19de23042068b07f10d8b867c8fb2c0df019 (patch) | |
tree | 99115aae3ef2d30fe4d6150e532fe42f58159523 /gfx | |
parent | c80c5d0cb08554777d8edea08511d649f77bd0a7 (diff) | |
download | chromium_src-8f3a19de23042068b07f10d8b867c8fb2c0df019.zip chromium_src-8f3a19de23042068b07f10d8b867c8fb2c0df019.tar.gz chromium_src-8f3a19de23042068b07f10d8b867c8fb2c0df019.tar.bz2 |
Add const to two methods.
Review URL: http://codereview.chromium.org/2867009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/point.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/point.h b/gfx/point.h index b3bb37b..3d9e670 100644 --- a/gfx/point.h +++ b/gfx/point.h @@ -52,13 +52,13 @@ class Point { y_ += delta_y; } - Point Add(const Point& other) { + Point Add(const Point& other) const{ Point copy = *this; copy.Offset(other.x_, other.y_); return copy; } - Point Subtract(const Point& other) { + Point Subtract(const Point& other) const { Point copy = *this; copy.Offset(-other.x_, -other.y_); return copy; |