#pragma hdrstop
#endif
-#if wxUSE_BACKINGFILE
+#if wxUSE_FILESYSTEM
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
m_filelen += count;
if (count < m_buflen) {
- delete m_stream;
- m_stream = NULL;
+ wxDELETE(m_stream);
if (count > 0) {
- delete[] m_buf;
- m_buf = NULL;
+ wxDELETEA(m_buf);
m_buflen = 0;
}
m_parenterror = wxSTREAM_READ_ERROR;
m_buflen = 0;
if (!m_stream) {
- delete[] m_buf;
- m_buf = NULL;
+ wxDELETEA(m_buf);
}
}
m_parenterror = m_stream->GetLastError();
if (m_parenterror == wxSTREAM_NO_ERROR)
m_parenterror = wxSTREAM_EOF;
- delete m_stream;
- m_stream = NULL;
+ wxDELETE(m_stream);
}
}
return len;
}
-
+
size_t wxBackedInputStream::OnSysRead(void *buffer, size_t size)
{
if (!IsOk())
return m_pos;
}
-#endif // wxUSE_BACKINGFILE
+#endif // wxUSE_FILESYSTEM