diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-12-23 08:39:26 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-12-31 18:15:05 +0100 |
commit | 289c0fdc2cafd79e3178a9cd3cfc6c5bd53c8336 (patch) | |
tree | 6dd5ba0381560b640d0ef89c31ae1e7bc434c546 /src/quick/items/qquickimage.cpp | |
parent | dbde4265657db16621551d12a25ff8ffaa18eb73 (diff) |
Optimize QQuickImagePrivate padding
Since the parent QQuickImageBasePrivate class ends with a bool bitfield,
starting QQuickImagePrivate with its own bitfield seems to cause them to
dovetail: at least the warnings about padding are eliminated. It's
anyway nice to group variables by size (although in reverse order),
group methods separately, and do header initialization as much as
possible.
Change-Id: I934e4ad682e338ebb62721ed40c60ff9d4465600
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickimage.cpp')
-rw-r--r-- | src/quick/items/qquickimage.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/quick/items/qquickimage.cpp b/src/quick/items/qquickimage.cpp index 840cfe15da..fccacdcce8 100644 --- a/src/quick/items/qquickimage.cpp +++ b/src/quick/items/qquickimage.cpp @@ -76,14 +76,8 @@ QSGTexture *QQuickImageTextureProvider::texture() const { } QQuickImagePrivate::QQuickImagePrivate() - : fillMode(QQuickImage::Stretch) - , paintedWidth(0) - , paintedHeight(0) - , pixmapChanged(false) + : pixmapChanged(false) , mipmap(false) - , hAlign(QQuickImage::AlignHCenter) - , vAlign(QQuickImage::AlignVCenter) - , provider(nullptr) { } |