Use Boolean value directly instead of executing conditional statement.

This commit is contained in:
Artur Wieczorek
2016-03-14 21:05:38 +01:00
parent 07274d7925
commit 21d8fd8677

View File

@@ -1079,10 +1079,11 @@ bool wxPropertyGridManager::IsPageModified( size_t index ) const
{
wxCHECK_MSG( index < GetPageCount(), false, wxS("Invalid page index") );
if ( m_arrPages[index]->GetStatePtr()->m_anyModified )
return true;
return false;
#if WXWIN_COMPATIBILITY_3_0
return m_arrPages[index]->GetStatePtr()->m_anyModified != (unsigned char)false;
#else
return m_arrPages[index]->GetStatePtr()->m_anyModified;
#endif
}
// -----------------------------------------------------------------------