DescriptionUse copy-swap idiom for GURL::operator=
All the work to correctly handle ownership and internal state of GURL
is already done by the copy-constructor, destructor, and GURL::Swap.
Repeating that work for GURL::operator= is just another place where we
might get it wrong.
BUG=309975
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230829
Patch Set 1 #
Total comments: 6
Patch Set 2 : #Patch Set 3 : Rebase #
Messages
Total messages: 12 (0 generated)
|