Get rid of redundant casts

This commit is contained in:
Artur Wieczorek 2022-05-21 22:05:11 +02:00
parent 6652243b6f
commit d872229be3
3 changed files with 3 additions and 3 deletions

View file

@ -1569,7 +1569,7 @@ public:
// Returns position in parent's array.
unsigned int GetIndexInParent() const
{
return (unsigned int)m_arrIndex;
return m_arrIndex;
}
// Hides or reveals the property.

View file

@ -485,7 +485,7 @@ public:
// Returns true if page is visibly displayed.
bool IsDisplayed() const;
bool IsInNonCatMode() const { return (bool)(m_properties == m_abcArray); }
bool IsInNonCatMode() const { return m_properties == m_abcArray; }
void DoLimitPropertyEditing( wxPGProperty* p, bool limit = true )
{

View file

@ -209,7 +209,7 @@ wxPGGlobalVarsClass::~wxPGGlobalVarsClass()
#if wxUSE_VALIDATORS
for ( size_t i = 0; i < m_arrValidators.size(); i++ )
delete ((wxValidator*)m_arrValidators[i]);
delete (m_arrValidators[i]);
#endif
// Destroy editor class instances.