Skip to content

Commit 18ab039

Browse files
committed
wxItemContainerImmutable has GetCount()
To get number of items in the container, GetCount() should be used. Hard to tell when Number() has been removed.
1 parent a284ef1 commit 18ab039

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TAO/utils/wxNamingViewer/wxSelectNSDialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ WxSelectNSDialog::WxSelectNSDialog( wxWindow* parent)
143143

144144
WxSelectNSDialog::~WxSelectNSDialog()
145145
{
146+
#if 0
146147
int count = servers->Number();
148+
#else
149+
int count = servers->GetCount();
150+
#endif
147151
for (int i = 0; i < count; i++) {
148152
delete static_cast<wxString*>( servers->GetClientData( i));
149153
}

0 commit comments

Comments
 (0)