]> git.mxchange.org Git - simgear.git/commit
Fix use count for deleted, reference counted objects.
authorThomas Geymayer <tomgey@gmail.com>
Wed, 7 May 2014 23:42:25 +0000 (01:42 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 7 May 2014 23:43:41 +0000 (01:43 +0200)
commitb2c3a90adfb6c0285d02355fd8ab061b7f2f1e6c
tree0b130d3672bc576274e7f9bdcd14e551763ca61f
parent9975c751a7a4986b1d1d1b1a546e37dc371e06f4
Fix use count for deleted, reference counted objects.

Remove inconsitency of returning 0 or ~0. If the object
has been deleted there are no more references, so always
return 0.
simgear/structure/SGReferenced.hxx
simgear/structure/SGWeakReferenced.hxx