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

Issue 187283006: Add RawPtr constructor taking a reference argument. (Closed)

Created:
6 years, 9 months ago by tkent
Modified:
6 years, 9 months ago
Reviewers:
haraken, Inactive, Mikhail
CC:
blink-reviews, Mikhail, adamk+blink_chromium.org, Inactive, abarth-chromium
Visibility:
Public.

Description

Add RawPtr constructor taking a reference argument. This fixed build failures with ENABLE_OILPAN after [1]. [1] http://src.chromium.org/viewvc/blink?view=revision&revision=168422 BUG= TBR=haraken@chromium.org, ch.dumez@samsung.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168433

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M Source/wtf/RawPtr.h View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
tkent
Committed patchset #1 manually as r168433 (presubmit successful).
6 years, 9 months ago (2014-03-05 05:43:43 UTC) #1
haraken
LGTM
6 years, 9 months ago (2014-03-05 05:44:46 UTC) #2
Mikhail
6 years, 9 months ago (2014-03-05 06:33:43 UTC) #3
Message was sent while issue was closed.
https://codereview.chromium.org/187283006/diff/1/Source/wtf/RawPtr.h
File Source/wtf/RawPtr.h (right):

https://codereview.chromium.org/187283006/diff/1/Source/wtf/RawPtr.h#newcode54
Source/wtf/RawPtr.h:54: RawPtr(T& reference) : m_ptr(&reference) { }
Shouldn't it be explicit? (to prevent from accidental deleting of a non-heap
allocated object)

Powered by Google App Engine
This is Rietveld 408576698