ModelEditor: Replace 0 with nullptr in plugin

Change-Id: I38b34213790dd165637d0d5096a4640eb43e8e0c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Jochen Becher
2017-07-30 22:12:58 +02:00
parent 16b2b16238
commit 40acf8c191
34 changed files with 114 additions and 114 deletions

View File

@@ -57,7 +57,7 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
qmt::PropertiesView::MView::visitMPackage(package);
if (m_modelElements.size() == 1 && !package->owner()) {
qmt::Project *project = m_projectController->project();
if (m_configPath == 0) {
if (!m_configPath) {
m_configPath = new Utils::PathChooser(m_topWidget);
m_configPath->setPromptDialogTitle(tr("Select Custom Configuration Folder"));
m_configPath->setExpectedKind(Utils::PathChooser::ExistingDirectory);
@@ -78,7 +78,7 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
m_configPath->setPath(QFileInfo(projectDir, project->configPath()).canonicalFilePath());
}
}
if (m_configPathInfo == 0) {
if (!m_configPathInfo) {
m_configPathInfo = new QLabel(m_topWidget);
addRow(QString(), m_configPathInfo, "configpathinfo");
}