diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 23be3289be..67dc5e6f5e 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -391,7 +391,7 @@ public: void Insert(const T* pItem, size_t uiIndex) { - base::insert(this->begin() + uiIndex, pItem); + base::insert(this->begin() + uiIndex, const_cast(pItem)); } void Empty() { DoEmpty(); base::clear(); }