diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-24 13:34:00 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-24 13:38:51 (GMT) |
commit | 1ba6875372bbe13b7df90a6cd1d547c628b47cd0 (patch) | |
tree | d5b8c3ea368b717472740f1277b69afb6655e475 /doc | |
parent | d55c1c4123c493ba5f607b81caaea0c42255bfd3 (diff) | |
download | Qt-1ba6875372bbe13b7df90a6cd1d547c628b47cd0.zip Qt-1ba6875372bbe13b7df90a6cd1d547c628b47cd0.tar.gz Qt-1ba6875372bbe13b7df90a6cd1d547c628b47cd0.tar.bz2 |
Avoid always detaching QStaticText
As a left over from when the d pointer was a plain pointer and not
a QExplicitlySharedPointer, we were setting the reference count to 1 on
construction. Since QExplicitlySharedPointer handles the ref count,
a newly constructed QStaticText would have a ref count of 2, and thus
would always detach upon modification.
Reviewed-by: Gunnar
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions