forked from qt-creator/qt-creator
Utils: Initialize all members of ShellCommandPage
Change-Id: I6f6d06f4e6be8b6a8c3b5f7c4b2072660b099699 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -117,7 +117,7 @@ void JsonKitsPage::setupProjectFiles(const JsonWizard::GeneratorFiles &files)
|
||||
continue;
|
||||
|
||||
auto manager = Utils::findOrDefault(managerList, Utils::equal(&IProjectManager::mimeType, mt.name()));
|
||||
project = manager ? manager->openProject(path, &errorMessage) : 0;
|
||||
project = manager ? manager->openProject(path, &errorMessage) : nullptr;
|
||||
if (project) {
|
||||
if (setupProject(project))
|
||||
project->saveSettings();
|
||||
@@ -166,7 +166,7 @@ QVector<JsonKitsPage::ConditionalFeature> JsonKitsPage::parseFeatures(const QVar
|
||||
if (feature.isEmpty()) {
|
||||
if (errorMessage) {
|
||||
*errorMessage = tr("No \"%1\" key found in feature list object.")
|
||||
.arg(QLatin1String(KEY_FEATURE));
|
||||
.arg(QLatin1String(KEY_FEATURE));
|
||||
}
|
||||
return QVector<ConditionalFeature>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user