diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-04-05 15:34:46 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 16:08:02 +0200 |
commit | 294960c1604218618c31878a68f25aee53972103 (patch) | |
tree | f8f5f9bfa21ba987a37456be69cbec0ce3452526 /dist/changes-0.96 | |
parent | fa36d81bbcbe9cecaaa20922dd278f7b14fc3d3c (diff) |
Q_DECLARE_SHARED: fix docs; require and use member-swap
By requiring a member-swap, this macro becomes applicable to a wider
range of types (e.g. QFont, which has another member besides 'd'),
while at the same time avoiding the encapsulation leak that is data_ptr().
There have been concerns over breaking existing users of
this macro, but for some time now, Q_DECLARE_SHARED only
works within QT_BEGIN_NAMESPACE anyway, so its a safe bet
that all users of this macro are in-tree.
Change-Id: I7fdd9dba204554af8d3f9768b97bb42847a5acf4
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'dist/changes-0.96')
0 files changed, 0 insertions, 0 deletions