silenced Watcom warning when deleting const pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d4e5987995
commit
b052a864e9
@ -3010,7 +3010,7 @@ inline wxCStrData::wxCStrData(const wxCStrData& data)
|
|||||||
inline wxCStrData::~wxCStrData()
|
inline wxCStrData::~wxCStrData()
|
||||||
{
|
{
|
||||||
if ( m_owned )
|
if ( m_owned )
|
||||||
delete m_str;
|
delete wx_const_cast(wxString*, m_str); // cast to silence warnings
|
||||||
}
|
}
|
||||||
|
|
||||||
// simple cases for AsChar() and AsWChar(), the complicated ones are
|
// simple cases for AsChar() and AsWChar(), the complicated ones are
|
||||||
|
Loading…
Reference in New Issue
Block a user