Skip to content

Commit

Permalink
wxItemContainerImmutable has GetCount()
Browse files Browse the repository at this point in the history
To get number of items in the container,
GetCount() should be used.

Hard to tell when Number() has been removed.
  • Loading branch information
saper committed Nov 27, 2023
1 parent a284ef1 commit 18ab039
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TAO/utils/wxNamingViewer/wxSelectNSDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ WxSelectNSDialog::WxSelectNSDialog( wxWindow* parent)

WxSelectNSDialog::~WxSelectNSDialog()
{
#if 0
int count = servers->Number();
#else
int count = servers->GetCount();
#endif
for (int i = 0; i < count; i++) {
delete static_cast<wxString*>( servers->GetClientData( i));
}
Expand Down

0 comments on commit 18ab039

Please sign in to comment.