Remove pointer check
The win pointer is valid because it is ensured before the check. It cannot be null. Coverity-Id: 21652 Change-Id: Iec8c1710d33a4eeb3820cd70bd94bd5b02fa0b41 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
91dbc59020
commit
0eb2e1f38f
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Copyright (C) 2016 Intel Corporation.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
|
|
@ -1502,7 +1502,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO
|
|||
QBackingStore *store = q->backingStore();
|
||||
|
||||
if (!store) {
|
||||
if (win && q->windowType() != Qt::Desktop) {
|
||||
if (q->windowType() != Qt::Desktop) {
|
||||
if (q->isTopLevel())
|
||||
q->setBackingStore(new QBackingStore(win));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue