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