]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Adding GetCount() to wxHashTable
[wxWidgets.git] / src / common / wincmn.cpp
index 39fae1d5259e210d620e0ad014be55e61f01c71d..60ed7b702552b9c003652541957cae85f8d70f90 100644 (file)
@@ -158,9 +158,7 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
                               const wxPoint& WXUNUSED(pos),
                               const wxSize& WXUNUSED(size),
                               long style,
-#if wxUSE_VALIDATORS
                               const wxValidator& validator,
-#endif
                               const wxString& name)
 {
     // m_isWindow is set to TRUE in wxWindowBase::Init() as well as many other
@@ -174,7 +172,10 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
     SetName(name);
     SetWindowStyleFlag(style);
     SetParent(parent);
+
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
     return TRUE;
 }