Fix unreferenced parameter warning with wxUSE_ACCEL disabled
This commit is contained in:
@@ -741,6 +741,8 @@ bool wxFrame::MSWDoTranslateMessage(wxFrame *frame, WXMSG *pMsg)
|
|||||||
wxMenuBar *menuBar = GetMenuBar();
|
wxMenuBar *menuBar = GetMenuBar();
|
||||||
if ( menuBar && menuBar->GetAcceleratorTable()->Translate(frame, pMsg) )
|
if ( menuBar && menuBar->GetAcceleratorTable()->Translate(frame, pMsg) )
|
||||||
return true;
|
return true;
|
||||||
|
#else
|
||||||
|
wxUnusedVar(frame);
|
||||||
#endif // wxUSE_MENUS && wxUSE_ACCEL
|
#endif // wxUSE_MENUS && wxUSE_ACCEL
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user