aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/layouts
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-28 09:24:20 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-28 10:55:09 +0100
commita26792aef8a19432748b453fe09bf0579c4dd1c1 (patch)
tree6eb62ebc5cf3094207608a4915da430345a1c85b /src/imports/layouts
parent2d559ec0e1fe9b50747bc648f4a4d3f5c0c8c46a (diff)
QQuickGridLayoutEngine: Avoid initializing QFlags with 0 or nullptr
Amends 744e77b841878fb017c0f2d60607090008f28180. Change-Id: I6f7192982c38346e7fc525600d3fddebff294d2f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/imports/layouts')
-rw-r--r--src/imports/layouts/qquickgridlayoutengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/layouts/qquickgridlayoutengine.cpp b/src/imports/layouts/qquickgridlayoutengine.cpp
index 6004bb92ca..5275d70c39 100644
--- a/src/imports/layouts/qquickgridlayoutengine.cpp
+++ b/src/imports/layouts/qquickgridlayoutengine.cpp
@@ -55,7 +55,7 @@ Qt::Alignment QQuickGridLayoutEngine::alignment(QQuickItem *quickItem) const
{
if (QGridLayoutItem *item = findLayoutItem(quickItem))
return item->alignment();
- return nullptr;
+ return {};
}
QT_END_NAMESPACE