Mercurial > hg > svgui
diff widgets/PluginParameterBox.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | 01778052e663 |
children | 11660e0c896f |
line wrap: on
line diff
--- a/widgets/PluginParameterBox.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/widgets/PluginParameterBox.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -37,7 +37,7 @@ PluginParameterBox::PluginParameterBox(Vamp::PluginBase *plugin, QWidget *parent) : QFrame(parent), m_plugin(plugin), - m_programCombo(0) + m_programCombo(nullptr) { m_layout = new QGridLayout; setLayout(m_layout); @@ -143,10 +143,10 @@ ParamRec rec; rec.param = params[i]; - rec.dial = 0; - rec.spin = 0; - rec.check = 0; - rec.combo = 0; + rec.dial = nullptr; + rec.spin = nullptr; + rec.check = nullptr; + rec.combo = nullptr; if (params[i].isQuantized && !valueNames.empty()) { @@ -191,7 +191,7 @@ << "\": invalid range " << min << " -> " << max << " with quantize step " << qtz << endl; } else { - RangeMapper *rm = 0; + RangeMapper *rm = nullptr; if (hint & PortHint::Logarithmic) { rm = new LogRangeMapper(imin, imax, min, max, unit); } else {