Get rid of unnecessary const casts

A pointer to unqualified type are converted implicitly to a more cv-qualified type.
This commit is contained in:
Artur Wieczorek
2019-06-16 18:05:03 +02:00
parent b064608c2a
commit f4e37e57e4
7 changed files with 7 additions and 7 deletions

View File

@@ -270,7 +270,7 @@ public:
const wxPropertyGrid* GetGrid() const
{
wxASSERT(m_pPropGrid);
return const_cast<const wxPropertyGrid*>(m_pPropGrid);
return m_pPropGrid;
}
// Returns iterator class instance.