Commit f04a2ea3 authored by David Faure's avatar David Faure

Fix compilation warnings with -Wzero-as-null-pointer-constant

parent 39c3be44
......@@ -563,7 +563,7 @@ void FlameGraph::setBottomUpData(const Data::BottomUpResults& bottomUpData)
{
m_bottomUpData = bottomUpData;
disconnect(m_costSource, 0, this, 0);
disconnect(m_costSource, nullptr, this, nullptr);
ResultsUtil::fillEventSourceComboBox(m_costSource, bottomUpData.costs,
ki18n("Show a flame graph over the aggregated %1 sample costs."));
connect(m_costSource, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
......
......@@ -45,7 +45,7 @@ class FlameGraph : public QWidget
{
Q_OBJECT
public:
explicit FlameGraph(QWidget* parent = nullptr, Qt::WindowFlags flags = 0);
explicit FlameGraph(QWidget* parent = nullptr, Qt::WindowFlags flags = {});
~FlameGraph();
void setTopDownData(const Data::TopDownResults& topDownData);
......
......@@ -51,7 +51,7 @@ class MainWindow : public QMainWindow
Q_OBJECT
public:
explicit MainWindow(QWidget* parent = 0);
explicit MainWindow(QWidget* parent = nullptr);
~MainWindow();
void setSysroot(const QString& path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment