diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-11-06 16:54:15 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-11-07 15:07:39 +0000 |
commit | be1d9beece91c32be3c8f7405ced9b2583a348c3 (patch) | |
tree | 483b0c9621da5844e57b6e59fa57d55f799d45b1 /src | |
parent | 4258586d806e612dcc501d5012c2e0ff7c570d11 (diff) | |
download | qt-creator-be1d9beece91c32be3c8f7405ced9b2583a348c3.tar.gz |
TargetSetupPage: Use nullptr
Change-Id: I41d996ffe2574f379f50a6867fe541ed235d5e81
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/targetsetuppage.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/targetsetuppage.cpp b/src/plugins/projectexplorer/targetsetuppage.cpp index c84beaf226..32a4ec63e0 100644 --- a/src/plugins/projectexplorer/targetsetuppage.cpp +++ b/src/plugins/projectexplorer/targetsetuppage.cpp @@ -274,7 +274,7 @@ void TargetSetupPage::reset() } m_widgets.clear(); - m_firstWidget = 0; + m_firstWidget = nullptr; m_ui->allKitsCheckBox->setChecked(false); } @@ -392,7 +392,7 @@ void TargetSetupPage::selectAtLeastOneKit() widget->setKitSelected(true); kitSelectionChanged(); } - m_firstWidget = 0; + m_firstWidget = nullptr; } emit completeChanged(); // Is this necessary? } @@ -484,7 +484,7 @@ void TargetSetupPage::removeWidget(Kit *k) if (!widget) return; if (widget == m_firstWidget) - m_firstWidget = 0; + m_firstWidget = nullptr; widget->deleteLater(); m_widgets.remove(k->id()); kitSelectionChanged(); @@ -493,17 +493,17 @@ void TargetSetupPage::removeWidget(Kit *k) TargetSetupWidget *TargetSetupPage::addWidget(Kit *k) { if (!k || (m_requiredPredicate && !m_requiredPredicate(k))) - return 0; + return nullptr; IBuildConfigurationFactory *factory = IBuildConfigurationFactory::find(k, m_projectPath); if (!factory) - return 0; + return nullptr; QList<BuildInfo *> infoList = factory->availableSetups(k, m_projectPath); TargetSetupWidget *widget = infoList.isEmpty() ? nullptr : new TargetSetupWidget(k, m_projectPath, infoList); if (!widget) - return 0; + return nullptr; m_baseLayout->removeWidget(m_importWidget); foreach (QWidget *widget, m_potentialWidgets) @@ -550,7 +550,7 @@ bool TargetSetupPage::setupProject(Project *project) toSetUp.clear(); - Target *activeTarget = 0; + Target *activeTarget = nullptr; if (m_importer) activeTarget = m_importer->preferredTarget(project->targets()); if (activeTarget) |