From: Vadim Zeitlin Date: Wed, 4 Feb 2009 14:40:47 +0000 (+0000) Subject: fix MSVC warning about implicit int to bool conversion X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c77c3023000a616ed3ade33c46af69217d9b78e1 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 --- 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: