From b0445661b1959f112ef1a2c97ef09a013576c4ff Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Mar 2016 02:15:58 +0100 Subject: [PATCH] Avoid harmless MSVC warning about implicit bool conversion With WXWIN_COMPATIBILITY_3_0 set to 1, m_anyModified member of wxPropertyGridPageState is an unsigned char, not bool, so don't convert it to a bool implicitly. --- src/propgrid/manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 34332555fd..51e22b0c62 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -1079,7 +1079,10 @@ bool wxPropertyGridManager::IsPageModified( size_t index ) const { wxCHECK_MSG( index < GetPageCount(), false, wxS("Invalid page index") ); - return m_arrPages[index]->GetStatePtr()->m_anyModified; + if ( m_arrPages[index]->GetStatePtr()->m_anyModified ) + return true; + + return false; } // -----------------------------------------------------------------------