+public:
+ wxTemporaryFileInputStream(const wxString& filename) :
+ wxFileInputStream(filename), m_filename(filename) {}
+
+ ~wxTemporaryFileInputStream()
+ {
+ // NB: copied from wxFileInputStream dtor, we need to do it before
+ // wxRemoveFile
+ if (m_file_destroy)
+ {
+ delete m_file;
+ m_file_destroy = false;
+ }
+ wxRemoveFile(m_filename);
+ }