Skip to content

Commit

Permalink
KDReportsChartElement: port from 0 to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaure-kdab committed Dec 11, 2024
1 parent a1ce8ba commit 51bee58
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/KDReports/KDReportsChartElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ class KDReports::ChartElementPrivate : public QSharedData
: m_tableModel(nullptr)
, m_size(100, 100)
, m_unit(KDReports::Millimeters)
,
#ifdef HAVE_KDCHART
m_chart(0)
,
, m_chart(nullptr)
#endif
m_deleteChart(false)
, m_deleteChart(false)
{
}

Expand Down Expand Up @@ -138,7 +136,7 @@ void KDReports::ChartElement::build(ReportBuilder &builder) const
d->m_deleteChart = true;
}

if (d->m_chart->coordinatePlane()->diagram() == 0) {
if (d->m_chart->coordinatePlane()->diagram() == nullptr) {
KDChart::BarDiagram *diagram = new KDChart::BarDiagram();
diagram->setModel(d->m_tableModel);
d->m_chart->coordinatePlane()->replaceDiagram(diagram);
Expand Down

0 comments on commit 51bee58

Please sign in to comment.