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

Issue 9455086: Make WeakPtr::operator* return reference instead of pointer (Closed)

Created:
8 years, 10 months ago by hashimoto
Modified:
8 years, 9 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Make WeakPtr::operator* return reference instead of pointer Reference is more suitable type for operator*'s return values. Add test code for operator->. BUG=None TEST=base_unittests --gtest_filter="WeakPtrTest.Dereference" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124141

Patch Set 1 : _ #

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

Messages

Total messages: 4 (0 generated)
hashimoto
8 years, 9 months ago (2012-02-28 09:50:43 UTC) #1
darin (slow to review)
LGTM (not sure why i didn't see this before!)
8 years, 9 months ago (2012-02-28 21:18:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/9455086/6001
8 years, 9 months ago (2012-02-29 03:33:58 UTC) #3
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 06:59:04 UTC) #4
Change committed as 124141

Powered by Google App Engine
This is Rietveld 408576698