]> git.ipfire.org Git - thirdparty/squid.git/commit
Use RefCount::dereference() correctly in move assignment
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Feb 2015 12:29:16 +0000 (04:29 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Feb 2015 12:29:16 +0000 (04:29 -0800)
commit0e63f9735e38f624f73275bd39463d2478cc016f
tree06bbe58a706d02448aef4fdf8b1437392db4e88d
parentecf069ade86cb68ace8da96e32a8e11b88cc0053
Use RefCount::dereference() correctly in move assignment

The dereference() member is actually an update operation on the stored
pointer. We can and should just use it to steal the others pointer
instead of using it on our own then stealing.
src/base/RefCount.h