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

Issue 2867009: Add const to two methods. (Closed)

Created:
10 years, 6 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M gfx/point.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jam
10 years, 6 months ago (2010-06-17 06:20:35 UTC) #1
brettw
10 years, 6 months ago (2010-06-17 06:32:08 UTC) #2
LGTM

On Wed, Jun 16, 2010 at 11:20 PM,  <jam@chromium.org> wrote:
> Reviewers: brettw,
>
> Description:
> Add const to two methods.
>
> Please review this at http://codereview.chromium.org/2867009/show
>
> SVN Base: svn://chrome-svn/chrome/trunk/src/
>
> Affected files:
>  M     gfx/point.h
>
>
> 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;
>
>
>

Powered by Google App Engine
This is Rietveld 408576698