Eliminate -Wzero-as-null-pointer-constant warnings in the headers

This commit is contained in:
Paul Cornett
2020-02-02 23:40:01 -08:00
parent 948ddc6e0f
commit 05183b7099
22 changed files with 59 additions and 59 deletions

View File

@@ -36,7 +36,7 @@ public:
{
m_width = m_height = m_depth = 0;
m_handle = 0;
m_handle = NULL;
}
wxGDIImageRefData(const wxGDIImageRefData& data) : wxGDIRefData()
@@ -50,7 +50,7 @@ public:
}
// accessors
virtual bool IsOk() const wxOVERRIDE { return m_handle != 0; }
virtual bool IsOk() const wxOVERRIDE { return m_handle != NULL; }
void SetSize(int w, int h) { m_width = w; m_height = h; }
@@ -104,7 +104,7 @@ public:
// accessors
WXHANDLE GetHandle() const
{ return IsNull() ? 0 : GetGDIImageData()->m_handle; }
{ return IsNull() ? NULL : GetGDIImageData()->m_handle; }
void SetHandle(WXHANDLE handle)
{ AllocExclusive(); GetGDIImageData()->m_handle = handle; }