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:
@@ -1162,7 +1162,7 @@ public:
|
||||
|
||||
const wxPGCommonValue* GetCommonValue( unsigned int i ) const
|
||||
{
|
||||
return const_cast<const wxPGCommonValue*>(m_commonValues[i]);
|
||||
return m_commonValues[i];
|
||||
}
|
||||
|
||||
// Returns number of common values.
|
||||
|
Reference in New Issue
Block a user