void wxArchiveFSCacheDataImpl::CloseStreams()
{
- delete m_archive;
- m_archive = NULL;
- delete m_stream;
- m_stream = NULL;
+ wxDELETE(m_archive);
+ wxDELETE(m_stream);
}
wxArchiveEntry *wxArchiveFSCacheDataImpl::Get(const wxString& name)
right = rightPart.GetFullPath(wxPATH_UNIX);
}
- if (right.GetChar(0) == wxT('/')) right = right.Mid(1);
+ if (right.Length() && right.GetChar(0) == wxT('/')) right = right.Mid(1);
if (!m_cache)
m_cache = new wxArchiveFSCache;