Fix unreferenced parameter warning with wxUSE_ACCEL disabled

This commit is contained in:
Maarten Bent
2019-11-21 21:27:20 +01:00
parent 3d1a8ef54e
commit d068bcfb57

View File

@@ -741,6 +741,8 @@ bool wxFrame::MSWDoTranslateMessage(wxFrame *frame, WXMSG *pMsg)
wxMenuBar *menuBar = GetMenuBar();
if ( menuBar && menuBar->GetAcceleratorTable()->Translate(frame, pMsg) )
return true;
#else
wxUnusedVar(frame);
#endif // wxUSE_MENUS && wxUSE_ACCEL
return false;