Use Boolean value directly instead of executing conditional statement.

This commit is contained in:
Artur Wieczorek
2016-03-06 21:20:11 +01:00
parent 912eb6fef9
commit 8b44873690

View File

@@ -1077,9 +1077,9 @@ bool wxPropertyGridManager::IsAnyModified() const
bool wxPropertyGridManager::IsPageModified( size_t index ) const
{
if ( m_arrPages[index]->GetStatePtr()->m_anyModified )
return true;
return false;
wxCHECK_MSG( index < GetPageCount(), false, wxS("Invalid page index") );
return m_arrPages[index]->GetStatePtr()->m_anyModified;
}
// -----------------------------------------------------------------------