summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 16:20:32 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 16:20:32 +0000
commit8f3a19de23042068b07f10d8b867c8fb2c0df019 (patch)
tree99115aae3ef2d30fe4d6150e532fe42f58159523 /gfx
parentc80c5d0cb08554777d8edea08511d649f77bd0a7 (diff)
downloadchromium_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.h4
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;