1. more warnings fixes in gtk/region.cpp and common/tbarsmpl.cpp
2. wxWindow::Create() always takes a wxValidator parameter, even if !wxUSE_VALIDATORS - it is just ignored then, tons of #if wxUSE_VALIDATORS removed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user