diff --git a/TAO/utils/wxNamingViewer/wxViewIORDialog.cpp b/TAO/utils/wxNamingViewer/wxViewIORDialog.cpp index aada3f6aa0b9b..8a326842b0dd5 100644 --- a/TAO/utils/wxNamingViewer/wxViewIORDialog.cpp +++ b/TAO/utils/wxNamingViewer/wxViewIORDialog.cpp @@ -220,9 +220,19 @@ void WxViewIORDialog::decodeIOR() } -void WxViewIORDialog::OnApply( wxCommandEvent& event) +#if defined(ANCIENT_WX_WINDOWS) +#define ONLY_ANCIENT_WX_USES(x) (x) +#else +#define ONLY_ANCIENT_WX_USES(x) WXUNUSED(x) +#endif + +void WxViewIORDialog::OnApply( wxCommandEvent& ONLY_ANCIENT_WX_USES(event)) { +#if defined(ANCIENT_WX_WINDOWS) wxDialog::OnApply( event); +#else + wxDialog::EndModal( wxID_APPLY); +#endif try { object = orb->string_to_object( ior); decodeIOR();