diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index c7c32e9f295..26af348ca76 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -453,7 +453,7 @@ static QList parseDemos(QXmlStreamReader *reader, static QList parseTutorials(QXmlStreamReader *reader, const QString &projectsOffset) { QList result; - std::unique_ptr item; + std::unique_ptr item = std::make_unique(); const QChar slash = QLatin1Char('/'); while (!reader->atEnd()) { switch (reader->readNext()) {