use nullptr instead of NULL

This commit is contained in:
john30
2018-05-06 14:54:52 +02:00
parent dc12476bc1
commit 1c17f7c466
41 changed files with 625 additions and 626 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ using std::streamsize;
RotateFile::~RotateFile() {
if (m_stream) {
fclose(m_stream);
m_stream = NULL;
m_stream = nullptr;
}
}
@@ -45,7 +45,7 @@ bool RotateFile::setEnabled(bool enabled) {
m_enabled = enabled;
if (m_stream) {
fclose(m_stream);
m_stream = NULL;
m_stream = nullptr;
}
if (enabled) {
m_stream = fopen(m_fileName.c_str(), m_textMode ? "w" : "wb");