Skip to content

Commit

Permalink
Fix more warnings: zero as null pointer constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlachs committed Jul 26, 2023
1 parent 239a9eb commit ee36788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QXlsx/header/xlsxchart.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class QXLSX_EXPORT Chart : public AbstractOOXmlFile
public:
~Chart();
public:
void addSeries(const CellRange &range, AbstractSheet *sheet = NULL, bool headerH = false, bool headerV = false, bool swapHeaders = false);
void addSeries(const CellRange &range, AbstractSheet *sheet = nullptr, bool headerH = false, bool headerV = false, bool swapHeaders = false);
void setChartType(ChartType type);
void setChartStyle(int id);
void setAxisTitle(Chart::ChartAxisPos pos, QString axisTitle);
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/header/xlsxconditionalformatting.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class QXLSX_EXPORT ConditionalFormatting

private:
bool saveToXml(QXmlStreamWriter &writer) const;
bool loadFromXml(QXmlStreamReader &reader, Styles* styles = NULL);
bool loadFromXml(QXmlStreamReader &reader, Styles* styles = nullptr);

QSharedDataPointer<ConditionalFormattingPrivate> d;
};
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxworkbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ AbstractSheet *Workbook::addSheet(const QString &name, int sheetId, AbstractShee
if (sheetId > d->last_sheet_id)
d->last_sheet_id = sheetId;

AbstractSheet *sheet = NULL;
AbstractSheet *sheet = nullptr;
if (type == AbstractSheet::ST_WorkSheet)
{
// create work sheet (value sheet)
Expand Down

0 comments on commit ee36788

Please sign in to comment.