VSRonin / QtXlsxWriter

.xlsx file reader and writer for Qt5
http://qtxlsx.debao.me
209 stars 73 forks source link

Fix zero-as-null-pointer-constant warning #38

Closed MartinDelille closed 5 years ago

MartinDelille commented 5 years ago

This PR simply replace 0 or NULL by nullptr. It allow compiling the code with the following configuration:

QMAKE_CXXFLAGS += -Werror -Wzero-as-null-pointer-constant
VSRonin commented 5 years ago

The original author wants the library to compile even with C++11 disabled. I can't accept as it is but using Q_NULLPTR instead of nullptr can be merged

MartinDelille commented 5 years ago

Done!