From 10461e195fba56f8b0935e502321d08f35ddce0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 26 Jul 2000 21:34:36 +0000 Subject: [PATCH] standardized syntax of bool properties: '1' means true, anything else false git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xml/xmlres.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/src/xml/xmlres.cpp b/contrib/src/xml/xmlres.cpp index ea00c03c75..9d2b7d37c3 100644 --- a/contrib/src/xml/xmlres.cpp +++ b/contrib/src/xml/xmlres.cpp @@ -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")); }