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:
Sander Visser 2020-06-26 00:31:59 +02:00
parent d4e78fce16
commit 85dd6ff89b

View File

@ -57,7 +57,7 @@
QWidget *loadCustomWidget(QWidget *parent)
{
QUiLoader loader;
QWidget *myWidget;
QWidget *myWidget = nullptr;
QStringList availableWidgets = loader.availableWidgets();