summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-28 12:49:33 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-28 16:07:57 +0200
commit9a21c1abb96426b7a9f168b007d05db303a8de65 (patch)
treed4bcf6b1d1aa728f6c1a77873cf50d295ae4aee2 /demos/qtdemo
parent3a0eccfe7237fe69e41580d1fb780342f4c09691 (diff)
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 'demos/qtdemo')
0 files changed, 0 insertions, 0 deletions