- if (s)
- {
- char buf[256];
-
- wxGetTempFileName( "wxhtml", buf);
- info = new wxInetCacheNode(buf, content);
- m_Cache.Put(right, info);
-
- { // ok, now copy it:
- wxFileOutputStream sout(buf);
- s -> Read(sout); // copy the stream
+ if (s)
+ {
+ wxString tmpfile =
+ wxFileName::CreateTempFileName(wxT("wxhtml"));
+
+ { // now copy streams content to temporary file:
+ wxFileOutputStream sout(tmpfile);
+ s->Read(sout);