From c77c3023000a616ed3ade33c46af69217d9b78e1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 4 Feb 2009 14:40:47 +0000 Subject: [PATCH] fix MSVC warning about implicit int to bool conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/valtext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/valtext.h b/include/wx/valtext.h index 62c762990d..c5ca124b67 100644 --- a/include/wx/valtext.h +++ b/include/wx/valtext.h @@ -78,7 +78,7 @@ public: inline wxArrayString& GetExcludes() { return m_excludes; } bool HasFlag(wxTextValidatorStyle style) const - { return m_validatorStyle & style; } + { return (m_validatorStyle & style) != 0; } protected: -- 2.50.0