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

Issue 1737009: Rename Compare -> Comparator to resolve name conflict in v8::internal (Closed)

Created:
10 years, 8 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Rename Compare -> Comparator to resolve name conflict in v8::internal Committed: http://code.google.com/p/v8/source/detail?r=4520

Patch Set 1 #

Patch Set 2 : fix format #

Total comments: 2

Patch Set 3 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M src/liveedit.h View 1 chunk +1 line, -1 line 0 comments Download
M src/liveedit.cc View 1 9 chunks +10 lines, -10 lines 0 comments Download
M test/cctest/test-liveedit.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Rybin
10 years, 8 months ago (2010-04-23 19:40:27 UTC) #1
Evan Martin
http://codereview.chromium.org/1737009/diff/2001/3002 File src/liveedit.h (right): http://codereview.chromium.org/1737009/diff/2001/3002#newcode121 src/liveedit.h:121: class Comparator { Since nothing else in the header ...
10 years, 8 months ago (2010-04-23 19:43:43 UTC) #2
Peter Rybin
http://codereview.chromium.org/1737009/diff/2001/3002 File src/liveedit.h (right): http://codereview.chromium.org/1737009/diff/2001/3002#newcode121 src/liveedit.h:121: class Comparator { On 2010/04/23 19:43:43, Evan Martin wrote: ...
10 years, 8 months ago (2010-04-23 19:51:49 UTC) #3
Evan Martin
10 years, 8 months ago (2010-04-23 20:07:24 UTC) #4
On 2010/04/23 19:51:49, Peter Rybin wrote:
> http://codereview.chromium.org/1737009/diff/2001/3002
> File src/liveedit.h (right):
> 
> http://codereview.chromium.org/1737009/diff/2001/3002#newcode121
> src/liveedit.h:121: class Comparator {
> On 2010/04/23 19:43:43, Evan Martin wrote:
> > Since nothing else in the header needed to change when you renamed this, I
> guess
> > that means it is only used within liveedit.cc?  You might consider putting
> this
> > class in the .cc file in an anonymous namespace.
> 
> I think I would make it difficult to test this class. What would you say?

Good point!  Another option to consider is a separate "liveedit" namespace, but
I don't think it matters too much.  This LGTM either way.

Powered by Google App Engine
This is Rietveld 408576698