wxFileIn/OutputStream fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,20 @@ wxFileInputStream::wxFileInputStream()
|
|||||||
m_file = NULL;
|
m_file = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFileInputStream::wxFileInputStream(wxFile& file)
|
||||||
|
{
|
||||||
|
m_file = &file;
|
||||||
|
m_file_destroy = FALSE;
|
||||||
|
m_i_streambuf->SetBufferIO(1024);
|
||||||
|
}
|
||||||
|
|
||||||
|
wxFileInputStream::wxFileInputStream(int fd)
|
||||||
|
{
|
||||||
|
m_file = new wxFile(fd);
|
||||||
|
m_file_destroy = TRUE;
|
||||||
|
m_i_streambuf->SetBufferIO(1024);
|
||||||
|
}
|
||||||
|
|
||||||
wxFileInputStream::~wxFileInputStream()
|
wxFileInputStream::~wxFileInputStream()
|
||||||
{
|
{
|
||||||
if (m_file_destroy)
|
if (m_file_destroy)
|
||||||
@@ -99,6 +113,13 @@ wxFileOutputStream::wxFileOutputStream()
|
|||||||
m_file = NULL;
|
m_file = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFileOutputStream::wxFileOutputStream(int fd)
|
||||||
|
{
|
||||||
|
m_file = new wxFile(fd);
|
||||||
|
m_file_destroy = TRUE;
|
||||||
|
m_o_streambuf->SetBufferIO(1024);
|
||||||
|
}
|
||||||
|
|
||||||
wxFileOutputStream::~wxFileOutputStream()
|
wxFileOutputStream::~wxFileOutputStream()
|
||||||
{
|
{
|
||||||
if (m_file_destroy) {
|
if (m_file_destroy) {
|
||||||
|
Reference in New Issue
Block a user