inline wxCStrData::~wxCStrData()
{
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
wxStringImpl::const_iterator *citer,
wxStringImpl::iterator *iter)
{
- m_next = m_prev = NULL;
+ m_prev = NULL;
m_iter = iter;
m_citer = citer;
m_str = str;
if ( m_next )
m_next->m_prev = this;
}
+ else
+ {
+ m_next = NULL;
+ }
}
void wxStringIteratorNode::clear()