Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: gfx/point.h

Issue 2867009: Add const to two methods. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/point.h
===================================================================
--- gfx/point.h (revision 49830)
+++ gfx/point.h (working copy)
@@ -52,13 +52,13 @@
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698