]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/proplist.cpp
Typos fixed and further clarification of the Python situation on Panther
[wxWidgets.git] / contrib / src / deprecated / proplist.cpp
index 29625022343c644c90ee49e8342a404ce1993ff5..58cf7d29d883cec3ddb6f3b89d4d89b946d00c25 100644 (file)
@@ -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