public:
wxTemporaryFileInputStream(const wxString& filename) :
wxFileInputStream(filename), m_filename(filename) {}
-
+
~wxTemporaryFileInputStream()
{
// NB: copied from wxFileInputStream dtor, we need to do it before
delete m_file;
m_file_destroy = false;
}
- wxRemoveFile(m_filename);
+ wxRemoveFile(m_filename);
}
protected:
return (url.GetError() == wxURL_NOERR);
}
- return FALSE;
+ return false;
}
s->Read(sout);
}
delete s;
-
+
return new wxFSFile(new wxTemporaryFileInputStream(tmpfile),
right,
content,
virtual bool OnInit()
{
wxFileSystem::AddHandler(new wxInternetFSHandler);
- return TRUE;
+ return true;
}
virtual void OnExit() {}
};