summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-04-19 10:17:48 +0200
committerEike Ziller <eike.ziller@qt.io>2023-05-09 13:13:42 +0000
commit7d35a11fd4955f9191211e3f19b4737bbb0347ac (patch)
tree04ed2b2662a32ae362c94242abf2d7ffa5a1c438
parent8764bab6278aeefd8ecce71b0a700ce7e89b4a5b (diff)
downloadqt-creator-7d35a11fd4955f9191211e3f19b4737bbb0347ac.tar.gz
QtVersionManager: Fix a warning about missing initializer
It fixes the following warning: warning: missing initializer for member ‘QtSupport::Internal::ExampleSetModel::ExtraExampleSet::qtVersion’ Amends bdfa412b14174e7e81b899ae8323fc78ddd7916e Change-Id: Ieb984664953f53d458297970e09678c499a26197 Reviewed-by: Eike Ziller <eike.ziller@qt.io> (cherry picked from commit a5ad7221841e9fd2c358f1b2a43cfb0fc0c819b9) Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.h2
-rw-r--r--src/plugins/qtsupport/qtversionmanager.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.h b/src/plugins/qtsupport/exampleslistmodel.h
index c444f9bc1e..f0465655b7 100644
--- a/src/plugins/qtsupport/exampleslistmodel.h
+++ b/src/plugins/qtsupport/exampleslistmodel.h
@@ -31,7 +31,7 @@ public:
// qtVersion is set by recreateModel for extra sets that correspond to actual Qt versions.
// This is needed for the decision to show categories or not based on the Qt version
// (which is not ideal).
- QVersionNumber qtVersion;
+ QVersionNumber qtVersion = {};
};
static QVector<ExtraExampleSet> pluginRegisteredExampleSets();
diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp
index bdf00c87d5..c46a45c763 100644
--- a/src/plugins/qtsupport/qtversionmanager.cpp
+++ b/src/plugins/qtsupport/qtversionmanager.cpp
@@ -5,7 +5,6 @@
#include "baseqtversion.h"
#include "exampleslistmodel.h"
-#include "qtkitinformation.h"
#include "qtsupportconstants.h"
#include "qtversionfactory.h"