From: Vadim Zeitlin Date: Sat, 14 Apr 2012 22:27:31 +0000 (+0000) Subject: Fix the check for wxUSE_DATETIME in wxGenericValidator code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/15e42bb781df7f069cc3b008f2a8004e398820af Fix the check for wxUSE_DATETIME in wxGenericValidator code. The #endif was somehow added at a wrong place and too much wxDateTime-unrelated code was disabled when wxUSE_DATETIME was off. Closes #14222. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index bc5d8c806f..315d53a48c 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -84,6 +84,8 @@ wxGenericValidator::wxGenericValidator(wxDateTime *val) m_pDateTime = val; } +#endif // wxUSE_DATETIME + wxGenericValidator::wxGenericValidator(wxFileName *val) { Initialize(); @@ -102,8 +104,6 @@ wxGenericValidator::wxGenericValidator(double *val) m_pDouble = val; } -#endif // wxUSE_DATETIME - wxGenericValidator::wxGenericValidator(const wxGenericValidator& val) : wxValidator() {