From 6326010ca01e2d5d636005c8c55b486a884ae34e Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Tue, 3 Jul 2001 18:59:43 +0000 Subject: [PATCH] replaced obsolete Number() calls with GetCount() calls git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/propform.cpp | 4 ++-- src/generic/proplist.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generic/propform.cpp b/src/generic/propform.cpp index 4f1b06f67f..5086d818c3 100644 --- a/src/generic/propform.cpp +++ b/src/generic/propform.cpp @@ -713,7 +713,7 @@ bool wxStringFormValidator::OnDisplayValue(wxProperty *property, wxPropertyFormV else if (m_propertyWindow->IsKindOf(CLASSINFO(wxListBox))) { wxListBox *lbox = (wxListBox *)m_propertyWindow; - if (lbox->Number() == 0 && m_strings) + if (lbox->GetCount() == 0 && m_strings) { // Try to initialize the listbox from 'strings' wxNode *node = m_strings->First(); @@ -737,7 +737,7 @@ bool wxStringFormValidator::OnDisplayValue(wxProperty *property, wxPropertyFormV { wxChoice *choice = (wxChoice *)m_propertyWindow; #ifndef __XVIEW__ - if (choice->Number() == 0 && m_strings) + if (choice->GetCount() == 0 && m_strings) { // Try to initialize the choice item from 'strings' // XView doesn't allow this kind of thing. diff --git a/src/generic/proplist.cpp b/src/generic/proplist.cpp index 66d2f30ca0..55722a5c10 100644 --- a/src/generic/proplist.cpp +++ b/src/generic/proplist.cpp @@ -217,7 +217,7 @@ bool wxPropertyListView::UpdatePropertyDisplayInList(wxProperty *property) // Find the wxListBox index corresponding to this property int wxPropertyListView::FindListIndexForProperty(wxProperty *property) { - int n = m_propertyScrollingList->Number(); + int n = m_propertyScrollingList->GetCount(); for (int i = 0; i < n; i++) { if (property == (wxProperty *)m_propertyScrollingList->wxListBox::GetClientData(i)) @@ -1172,7 +1172,7 @@ bool wxStringListValidator::OnDisplayValue(wxProperty *property, wxPropertyListV return FALSE; wxString str(property->GetValue().GetStringRepresentation()); view->GetValueText()->SetValue(str); - if (m_strings && view->GetValueList() && view->GetValueList()->IsShown() && view->GetValueList()->Number() > 0) + if (m_strings && view->GetValueList() && view->GetValueList()->IsShown() && view->GetValueList()->GetCount() > 0) { view->GetValueList()->SetStringSelection(str); } -- 2.47.2