Eliminate a couple more -Wcast-qual warnings

This commit is contained in:
Paul Cornett
2020-02-03 09:02:14 -08:00
parent ad7dfba124
commit f4299c3c01
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ class wxList_SortFunction
public:
wxList_SortFunction(wxSortCompareFunction f) : m_f(f) { }
bool operator()(const T& i1, const T& i2)
{ return m_f((T*)&i1, (T*)&i2) < 0; }
{ return m_f(&i1, &i2) < 0; }
private:
wxSortCompareFunction m_f;
};