X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bba965d6d668b130e627aa93998529bbcbed14a4..d1a6e2b7a103d761fbc15e0e9c1c20ab53a849d9:/contrib/src/deprecated/proplist.cpp?ds=sidebyside diff --git a/contrib/src/deprecated/proplist.cpp b/contrib/src/deprecated/proplist.cpp index 2962502234..58cf7d29d8 100644 --- a/contrib/src/deprecated/proplist.cpp +++ b/contrib/src/deprecated/proplist.cpp @@ -1031,11 +1031,7 @@ bool wxBoolListValidator::OnRetrieveValue(wxProperty *property, wxPropertyListVi return FALSE; wxString value(view->GetValueText()->GetValue()); - bool boolValue = FALSE; - if (value == wxT("True")) - boolValue = TRUE; - else - boolValue = FALSE; + bool boolValue = (value == wxT("True")); property->GetValue() = (bool)boolValue; return TRUE; } @@ -1258,7 +1254,7 @@ bool wxStringListValidator::OnDoubleClick( wxProperty *property, wxChar *s = node->GetData(); if (wxStrcmp(s, currentString) == 0) { - wxChar *nextString = NULL; + wxChar *nextString; if (node->GetNext()) nextString = node->GetNext()->GetData(); else