QRegion: Reorganise members to reduce padding in QRegionPrivate

On 64-bit platforms: 56 -> 48 bytes.
On 32-bit platforms it's still the same size (44 bytes).

Change-Id: Ia4831753258ef12aa983757523bb76979e6fc4b0
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Maks Naumov 2014-09-15 19:19:29 +03:00
parent 75ae4dacbc
commit ee324e4ed5

View File

@ -1087,17 +1087,17 @@ Q_GUI_EXPORT QPainterPath qt_regionToPath(const QRegion &region)
struct QRegionPrivate {
int numRects;
int innerArea;
QVector<QRect> rects;
QRect extents;
QRect innerRect;
int innerArea;
inline QRegionPrivate() : numRects(0), innerArea(-1) {}
inline QRegionPrivate(const QRect &r)
: numRects(1),
innerArea(r.width() * r.height()),
extents(r),
innerRect(r),
innerArea(r.width() * r.height())
innerRect(r)
{
}