#include "wx/stream.h"
#include "wx/longlong.h"
-#include "wx/strconv.h"
+#include "wx/convauto.h"
#if wxUSE_STREAMS
{
public:
#if wxUSE_UNICODE
- wxDataInputStream(wxInputStream& s, wxMBConv& conv = wxConvUTF8);
+ wxDataInputStream(wxInputStream& s, const wxMBConv& conv = wxConvAuto());
#else
wxDataInputStream(wxInputStream& s);
#endif
- ~wxDataInputStream(){}
+ ~wxDataInputStream();
bool IsOk() { return m_input->IsOk(); }
wxInputStream *m_input;
bool m_be_order;
#if wxUSE_UNICODE
- wxMBConv& m_conv;
+ wxMBConv *m_conv;
#endif
DECLARE_NO_COPY_CLASS(wxDataInputStream)
{
public:
#if wxUSE_UNICODE
- wxDataOutputStream(wxOutputStream& s, wxMBConv& conv = wxConvUTF8);
+ wxDataOutputStream(wxOutputStream& s, const wxMBConv& conv = wxConvAuto());
#else
wxDataOutputStream(wxOutputStream& s);
#endif
- ~wxDataOutputStream(){}
+ ~wxDataOutputStream();
bool IsOk() { return m_output->IsOk(); }
wxOutputStream *m_output;
bool m_be_order;
#if wxUSE_UNICODE
- wxMBConv& m_conv;
+ wxMBConv *m_conv;
#endif
DECLARE_NO_COPY_CLASS(wxDataOutputStream)