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:
parent
94129723b9
commit
0aca1ded9c
@ -42,6 +42,20 @@ wxFileInputStream::wxFileInputStream()
|
||||
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()
|
||||
{
|
||||
if (m_file_destroy)
|
||||
@ -99,6 +113,13 @@ wxFileOutputStream::wxFileOutputStream()
|
||||
m_file = NULL;
|
||||
}
|
||||
|
||||
wxFileOutputStream::wxFileOutputStream(int fd)
|
||||
{
|
||||
m_file = new wxFile(fd);
|
||||
m_file_destroy = TRUE;
|
||||
m_o_streambuf->SetBufferIO(1024);
|
||||
}
|
||||
|
||||
wxFileOutputStream::~wxFileOutputStream()
|
||||
{
|
||||
if (m_file_destroy) {
|
||||
|
Loading…
Reference in New Issue
Block a user