Fix return of uninitialized pointer in guiloader example
Signed-off-by: Sander Visser <github@visser.se> Change-Id: I7e23402562bd560d55bb811e5e61cca4fcfe247d Reviewed-by: Jean-Michaël Celerier <jean-michael.celerier@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
d4e78fce16
commit
85dd6ff89b
@ -57,7 +57,7 @@
|
||||
QWidget *loadCustomWidget(QWidget *parent)
|
||||
{
|
||||
QUiLoader loader;
|
||||
QWidget *myWidget;
|
||||
QWidget *myWidget = nullptr;
|
||||
|
||||
QStringList availableWidgets = loader.availableWidgets();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user