X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf..23c06cde5df85dbfd94e92e90de225618191153f:/include/wx/archive.h?ds=sidebyside diff --git a/include/wx/archive.h b/include/wx/archive.h index 6f0ce844e1..7acebd1e28 100644 --- a/include/wx/archive.h +++ b/include/wx/archive.h @@ -342,7 +342,8 @@ public: wxPathFormat format = wxPATH_NATIVE) const = 0; void SetConv(wxMBConv& conv) { m_pConv = &conv; } - wxMBConv& GetConv() const { return *m_pConv; } + wxMBConv& GetConv() const + { if (m_pConv) return *m_pConv; else return wxConvLocal; } static const wxArchiveClassFactory *Find(const wxChar *protocol, wxStreamProtocolType type @@ -363,7 +364,7 @@ protected: virtual wxArchiveInputStream *DoNewStream(wxInputStream *stream) const = 0; virtual wxArchiveOutputStream *DoNewStream(wxOutputStream *stream) const = 0; - wxArchiveClassFactory() : m_pConv(&wxConvLocal), m_next(this) { } + wxArchiveClassFactory() : m_pConv(NULL), m_next(this) { } wxArchiveClassFactory& operator=(const wxArchiveClassFactory& WXUNUSED(f)) { return *this; }