Skip to content

Commit

Permalink
Use EndModal() for newer wxWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
saper committed Nov 27, 2023
1 parent 4efd832 commit a13fcf5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion TAO/utils/wxNamingViewer/wxViewIORDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a13fcf5

Please sign in to comment.