fix warning on watcom

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-07-23 14:49:37 +00:00
parent 6f3012ae09
commit b37023dca3

View File

@@ -347,10 +347,15 @@ bool wxTextCtrlBase::CanPaste() const
// emulating key presses // emulating key presses
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __WIN32__
// the generic version is unused in wxMSW
bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& WXUNUSED(event))
{
return FALSE;
}
#else // !__WIN32__
bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event) bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
{ {
// the generic version is unused in wxMSW
#ifndef __WIN32__
wxChar ch = 0; wxChar ch = 0;
int keycode = event.GetKeyCode(); int keycode = event.GetKeyCode();
switch ( keycode ) switch ( keycode )
@@ -436,12 +441,10 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
return TRUE; return TRUE;
} }
#else
event;
#endif // !__WIN32__
return FALSE; return FALSE;
} }
#endif // !__WIN32__
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// selection and ranges // selection and ranges