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

Issue 18131002: ScopedVector - fix const semantics. (Closed)

Created:
7 years, 5 months ago by groby-ooo-7-16
Modified:
7 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

ScopedVector - fix const semantics. const std::vector<T*> returns a const reference to a T* for operator[]. const ScopedVector<T> instead returns a const T*, which means the two have slightly differing semantics. Fix ScopedVector to behave like std::vector instead - the reference to the pointer is const, but the pointer is not const. TBR=willchan@chromium.org R=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209537

Patch Set 1 #

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

Messages

Total messages: 5 (0 generated)
groby-ooo-7-16
will: I suppose this was an oversight - it prevents using ScopedVector in some cases ...
7 years, 5 months ago (2013-06-27 19:55:53 UTC) #1
groby-ooo-7-16
Changed reviewers, since willchan seems to be occupied otherwise right now. brettw: PTAL
7 years, 5 months ago (2013-06-29 01:47:18 UTC) #2
brettw
lgtm
7 years, 5 months ago (2013-07-01 05:01:06 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/18131002/1
7 years, 5 months ago (2013-07-01 17:28:05 UTC) #4
commit-bot: I haz the power
7 years, 5 months ago (2013-07-01 23:26:15 UTC) #5
Message was sent while issue was closed.
Change committed as 209537

Powered by Google App Engine
This is Rietveld 408576698