Eliminate -Wzero-as-null-pointer-constant warnings in the headers
This commit is contained in:
@@ -150,7 +150,7 @@ name##PluginSentinel m_pluginsentinel
|
||||
// The 'this' pointer is always true, so use this version
|
||||
// to cast the this pointer and avoid compiler warnings.
|
||||
#define wxDynamicCastThis(className) \
|
||||
(IsKindOf(&className::ms_classInfo) ? (className *)(this) : (className *)0)
|
||||
(IsKindOf(&className::ms_classInfo) ? (className*)this : NULL)
|
||||
|
||||
template <class T>
|
||||
inline T *wxCheckCast(const void *ptr)
|
||||
|
Reference in New Issue
Block a user