diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-28 10:49:33 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-28 14:07:57 (GMT) |
commit | 9a21c1abb96426b7a9f168b007d05db303a8de65 (patch) | |
tree | d4bcf6b1d1aa728f6c1a77873cf50d295ae4aee2 /examples/animation/animation.pro | |
parent | 3a0eccfe7237fe69e41580d1fb780342f4c09691 (diff) | |
download | Qt-9a21c1abb96426b7a9f168b007d05db303a8de65.zip Qt-9a21c1abb96426b7a9f168b007d05db303a8de65.tar.gz Qt-9a21c1abb96426b7a9f168b007d05db303a8de65.tar.bz2 |
Implement a new pointer-tracking mechanism for QSharedPointer.
Some compilers don't obey the same rules of "top-of-object" values for
casting a pointer from a given class to void *. In any case, that can
only work for polymorphic types (with a virtual table).
So don't track the pointers by their pointer value, but instead by the
d-pointer of the QSharedPointer object.
The same cases that were caught before should still be caught. We
still won't catch the creating a second QSharedPointer for the same
object if the pointer values are different, though (when cast to
void*).
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'examples/animation/animation.pro')
0 files changed, 0 insertions, 0 deletions