comparison widgets/PluginParameterDialog.cpp @ 1408:c8a6fd3f9dff fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:54 +0000
parents 3ca1be2e2c91
children 11660e0c896f
comparison
equal deleted inserted replaced
1407:05d614f6e46d 1408:c8a6fd3f9dff
49 m_plugin(plugin), 49 m_plugin(plugin),
50 m_channel(-1), 50 m_channel(-1),
51 m_stepSize(0), 51 m_stepSize(0),
52 m_blockSize(0), 52 m_blockSize(0),
53 m_windowType(HanningWindow), 53 m_windowType(HanningWindow),
54 m_parameterBox(0), 54 m_parameterBox(nullptr),
55 m_currentSelectionOnly(false) 55 m_currentSelectionOnly(false)
56 { 56 {
57 setWindowTitle(tr("Plugin Parameters")); 57 setWindowTitle(tr("Plugin Parameters"));
58 58
59 QGridLayout *grid = new QGridLayout; 59 QGridLayout *grid = new QGridLayout;
87 versionLabel->setWordWrap(true); 87 versionLabel->setWordWrap(true);
88 88
89 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); 89 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str());
90 copyrightLabel->setWordWrap(true); 90 copyrightLabel->setWordWrap(true);
91 91
92 QLabel *descriptionLabel = 0; 92 QLabel *descriptionLabel = nullptr;
93 if (plugin->getDescription() != "") { 93 if (plugin->getDescription() != "") {
94 descriptionLabel = new QLabel(plugin->getDescription().c_str()); 94 descriptionLabel = new QLabel(plugin->getDescription().c_str());
95 descriptionLabel->setWordWrap(true); 95 descriptionLabel->setWordWrap(true);
96 descriptionLabel->setFont(italicFont); 96 descriptionLabel->setFont(italicFont);
97 } 97 }