X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0094bc4c410493752777bdb104571d449b1be4b3..6540d8d2bae4652270096b439991dd9ccb417cc1:/src/common/datstrm.cpp diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index d568c6d7c0..e480fef05e 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -45,6 +45,14 @@ wxDataInputStream::~wxDataInputStream() #endif // wxUSE_UNICODE } +#if wxUSE_UNICODE +void wxDataInputStream::SetConv( const wxMBConv &conv ) +{ + delete m_conv; + m_conv = conv.Clone(); +} +#endif + #if wxHAS_INT64 wxUint64 wxDataInputStream::Read64() { @@ -473,6 +481,14 @@ wxDataOutputStream::~wxDataOutputStream() #endif // wxUSE_UNICODE } +#if wxUSE_UNICODE +void wxDataOutputStream::SetConv( const wxMBConv &conv ) +{ + delete m_conv; + m_conv = conv.Clone(); +} +#endif + #if wxHAS_INT64 void wxDataOutputStream::Write64(wxUint64 i) { @@ -533,6 +549,7 @@ void wxDataOutputStream::WriteDouble(double d) #if wxUSE_APPLE_IEEE wxConvertToIeeeExtended(d, (wxInt8 *)buf); #else + wxUnusedVar(d); #if !defined(__VMS__) && !defined(__GNUG__) # pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!" #endif