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

@@ -43,7 +43,7 @@ public:
bool Play(wxDC *dc, wxRect *rectBound = NULL);
// accessors
virtual bool IsOk() const wxOVERRIDE { return m_hMF != 0; }
virtual bool IsOk() const wxOVERRIDE { return m_hMF != NULL; }
wxSize GetSize() const;
int GetWidth() const { return GetSize().x; }
@@ -59,7 +59,7 @@ public:
// Detach the HENHMETAFILE from this object, i.e. don't delete the handle
// in the dtor -- the caller is now responsible for doing this, e.g. using
// Free() method below.
WXHANDLE Detach() { WXHANDLE h = m_hMF; m_hMF = 0; return h; }
WXHANDLE Detach() { WXHANDLE h = m_hMF; m_hMF = NULL; return h; }
// Destroy the given HENHMETAFILE object.
static void Free(WXHANDLE handle);