Eliminate -Wzero-as-null-pointer-constant warnings in the headers
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user