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:
parent
75ae4dacbc
commit
ee324e4ed5
@ -1087,17 +1087,17 @@ Q_GUI_EXPORT QPainterPath qt_regionToPath(const QRegion ®ion)
|
||||
|
||||
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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user