added wxVALIDATOR_PARAM and use it to avoid warnings about unused validators when wxUSE_VALIDATORS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,7 +202,7 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
|
||||
const wxPoint& WXUNUSED(pos),
|
||||
const wxSize& WXUNUSED(size),
|
||||
long style,
|
||||
const wxValidator& validator,
|
||||
const wxValidator& wxVALIDATOR_PARAM(validator),
|
||||
const wxString& name)
|
||||
{
|
||||
#if wxUSE_STATBOX
|
||||
@@ -2144,7 +2144,7 @@ void wxWindowBase::SendDestroyEvent()
|
||||
// event processing
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxWindowBase::TryValidator(wxEvent& event)
|
||||
bool wxWindowBase::TryValidator(wxEvent& wxVALIDATOR_PARAM(event))
|
||||
{
|
||||
#if wxUSE_VALIDATORS
|
||||
// Can only use the validator of the window which
|
||||
|
Reference in New Issue
Block a user