#if wxUSE_VALIDATORS
 
+#include "wx/validate.h"
+
 #ifndef WX_PRECOMP
     #include "wx/window.h"
 #endif
 
-#include "wx/validate.h"
-
 const wxValidator wxDefaultValidator;
 
 IMPLEMENT_DYNAMIC_CLASS(wxValidator, wxEvtHandler)
 
 wxValidator::wxValidator()
 {
-  m_validatorWindow = (wxWindow *) NULL;
+  m_validatorWindow = NULL;
 }
 
 wxValidator::~wxValidator()