X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5982058625b149a820cc53a2e8098026e9d3ce4..dc8a1aa53d9c71820d683aefe7ea04d7e480f63b:/contrib/src/deprecated/propform.cpp diff --git a/contrib/src/deprecated/propform.cpp b/contrib/src/deprecated/propform.cpp index e7730d4281..df77fe214d 100644 --- a/contrib/src/deprecated/propform.cpp +++ b/contrib/src/deprecated/propform.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "propform.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -218,7 +214,7 @@ void wxPropertyFormView::OnCommand(wxWindow& win, wxCommandEvent& event) if (!m_propertySheet) return; - if (win.GetName() == wxT("")) + if (win.GetName().empty()) return; if (wxStrcmp(win.GetName(), wxT("ok")) == 0) @@ -680,7 +676,7 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm else if (m_propertyWindow->IsKindOf(CLASSINFO(wxListBox))) { wxListBox *lbox = (wxListBox *)m_propertyWindow; - if (lbox->GetSelection() > -1) + if (lbox->GetSelection() != wxNOT_FOUND) property->GetValue() = lbox->GetStringSelection(); } /* @@ -688,14 +684,14 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm { wxRadioBox *rbox = (wxRadioBox *)m_propertyWindow; int n = 0; - if ((n = rbox->GetSelection()) > -1) + if ((n = rbox->GetSelection()) != wxNOT_FOUND) property->GetValue() = rbox->GetString(n); } */ else if (m_propertyWindow->IsKindOf(CLASSINFO(wxChoice))) { wxChoice *choice = (wxChoice *)m_propertyWindow; - if (choice->GetSelection() > -1) + if (choice->GetSelection() != wxNOT_FOUND) property->GetValue() = choice->GetStringSelection(); } else