X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..77c8efc8c37da6d6a5e2e8022d21d1cd7d76371d:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index 5ecc10f704..66af403e2f 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -47,7 +47,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxMemoryInputStream, wxInputStream) wxMemoryInputStream::wxMemoryInputStream(const void *data, size_t len) { m_i_streambuf = new wxStreamBuffer(wxStreamBuffer::read); - m_i_streambuf->SetBufferIO((void *)data, len); // const_cast + m_i_streambuf->SetBufferIO(const_cast(data), len); m_i_streambuf->SetIntPosition(0); // seek to start pos m_i_streambuf->Fixed(true);