Chromium Code Reviews
DescriptionFix RefPtr's move assignment operator
Fix RefPtr's move assignment operator so that the moved RefPtr is always
null after the assignment. Because the previous implementation was not
swapping with a temporary variable, this wasn't necessary the case and
this behavior is unexpected.
Thanks to Mikhail Pozdnyakov for pointing this out.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177206
Patch Set 1 #Patch Set 2 : Include <utility> #Patch Set 3 : Stop using std::move #
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||||||||||||||||||||