Skip to content

Commit

Permalink
fix -Wzero-as-null-pointer-constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaure-kdab committed Jul 9, 2024
1 parent 0e49957 commit 74d86f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/DemoWasm/ResultModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ResultModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit ResultModel(QObject *parent = 0);
explicit ResultModel(QObject *parent = nullptr);

int columnCount(const QModelIndex &parent = QModelIndex()) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
Expand Down
2 changes: 1 addition & 1 deletion examples/DemoWasm/TableModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TESTTOOLS_EXPORT TableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit TableModel(QObject *parent = 0);
explicit TableModel(QObject *parent = nullptr);
~TableModel() override;

/** Return header data from the model.
Expand Down
2 changes: 1 addition & 1 deletion src/KDReports/KDReportsReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Q_GLOBAL_STATIC(ModelMap, globalModelMap)

QAbstractItemModel *KDReports::modelForKey(const QString &key)
{
return globalModelMap()->value(key, 0);
return globalModelMap()->value(key, nullptr);
}

qreal KDReports::ReportPrivate::textDocumentWidth() const
Expand Down

0 comments on commit 74d86f3

Please sign in to comment.