En masse NULL -> nullptr replace
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
cGZipFile::cGZipFile(void) :
|
||||
m_File(NULL), m_Mode(fmRead)
|
||||
m_File(nullptr), m_Mode(fmRead)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@ cGZipFile::~cGZipFile()
|
||||
|
||||
bool cGZipFile::Open(const AString & a_FileName, eMode a_Mode)
|
||||
{
|
||||
if (m_File != NULL)
|
||||
if (m_File != nullptr)
|
||||
{
|
||||
ASSERT(!"A file is already open in this object");
|
||||
return false;
|
||||
}
|
||||
m_File = gzopen(a_FileName.c_str(), (a_Mode == fmRead) ? "r" : "w");
|
||||
m_Mode = a_Mode;
|
||||
return (m_File != NULL);
|
||||
return (m_File != nullptr);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@ bool cGZipFile::Open(const AString & a_FileName, eMode a_Mode)
|
||||
|
||||
void cGZipFile::Close(void)
|
||||
{
|
||||
if (m_File != NULL)
|
||||
if (m_File != nullptr)
|
||||
{
|
||||
gzclose(m_File);
|
||||
m_File = NULL;
|
||||
m_File = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ void cGZipFile::Close(void)
|
||||
|
||||
int cGZipFile::ReadRestOfFile(AString & a_Contents)
|
||||
{
|
||||
if (m_File == NULL)
|
||||
if (m_File == nullptr)
|
||||
{
|
||||
ASSERT(!"No file has been opened");
|
||||
return -1;
|
||||
@@ -90,7 +90,7 @@ int cGZipFile::ReadRestOfFile(AString & a_Contents)
|
||||
|
||||
bool cGZipFile::Write(const char * a_Contents, int a_Size)
|
||||
{
|
||||
if (m_File == NULL)
|
||||
if (m_File == nullptr)
|
||||
{
|
||||
ASSERT(!"No file has been opened");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user