]> git.saurik.com Git - wxWidgets.git/commitdiff
standardized syntax of bool properties: '1' means true, anything else false
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 26 Jul 2000 21:34:36 +0000 (21:34 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 26 Jul 2000 21:34:36 +0000 (21:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xml/xmlres.cpp

index ea00c03c756b0d7b68246fbc3a023a6b87a28516..9d2b7d37c3ccca7fb625aeab461a06709d276942 100644 (file)
@@ -441,8 +441,7 @@ bool wxXmlResourceHandler::GetBool(const wxString& param, bool defaultv)
     wxString v = GetParamValue(param);
     v.MakeLower();
     if (!v) return defaultv;
-    else return v == _T("1") || v == _T("t") || v == _T("yes") ||
-                v == _T("on") || v == _T("true");
+    else return (v == _T("1"));
 }