X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af59b3fc6dadf64dedc1dcaed3226e84ee62fb0a..8ddda15ba50407de79f9749ab840d8c9ba0dde39:/src/common/valtext.cpp diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index 59a7eaa6bb..48b8bf3e32 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -76,7 +76,7 @@ void wxTextValidator::SetStyle(long style) { m_validatorStyle = style; -#ifdef __WXDEBUG__ +#if wxDEBUG_LEVEL int check; check = (int)HasFlag(wxFILTER_ALPHA) + (int)HasFlag(wxFILTER_ALPHANUMERIC) + (int)HasFlag(wxFILTER_DIGITS) + (int)HasFlag(wxFILTER_NUMERIC); @@ -93,7 +93,7 @@ void wxTextValidator::SetStyle(long style) (int)HasFlag(wxFILTER_EXCLUDE_LIST) + (int)HasFlag(wxFILTER_EXCLUDE_CHAR_LIST); wxASSERT_MSG(check <= 1, "Using both an include/exclude list may lead to unexpected results"); -#endif +#endif // wxDEBUG_LEVEL } bool wxTextValidator::Copy(const wxTextValidator& val) @@ -126,7 +126,7 @@ wxTextEntry *wxTextValidator::GetTextEntry() #endif wxFAIL_MSG( - _T("wxTextValidator can only be used with wxTextCtrl or wxComboBox") + wxT("wxTextValidator can only be used with wxTextCtrl or wxComboBox") ); return NULL;