DescriptionUse explicit operator bool in scoped_refptr.
Previously the "Safe Bool Idiom" was incorrectly
implemented using a typedef ... Testable that leaked
the raw pointer of scoped_refptr.
Code relying on that side effect has been corrected
in https://codereview.chromium.org/1958823002/
The C++11 explicit conversion operator feature
is now available and this hack is no longer required,
and usage will be enforced to not inadvertently
use the raw pointer.
BUG=610048
Committed: https://crrev.com/116b5a887f10705fdaf736b679f52cc84fd178d9
Cr-Commit-Position: refs/heads/master@{#393195}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 11 (6 generated)
|