Use Boolean value directly instead of executing conditional statement.
This commit is contained in:
@@ -1079,10 +1079,11 @@ bool wxPropertyGridManager::IsPageModified( size_t index ) const
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( index < GetPageCount(), false, wxS("Invalid page index") );
|
wxCHECK_MSG( index < GetPageCount(), false, wxS("Invalid page index") );
|
||||||
|
|
||||||
if ( m_arrPages[index]->GetStatePtr()->m_anyModified )
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
return true;
|
return m_arrPages[index]->GetStatePtr()->m_anyModified != (unsigned char)false;
|
||||||
|
#else
|
||||||
return false;
|
return m_arrPages[index]->GetStatePtr()->m_anyModified;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user