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:
Václav Slavík 2007-07-01 12:42:31 +00:00
parent d4e5987995
commit b052a864e9

View File

@ -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