ambiguous ctor call resolved

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-09-18 16:50:48 +00:00
parent ec6e0a192c
commit 07d4b94c3b

View File

@ -90,7 +90,7 @@ wxFSFile* wxInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxStri
content = url.GetProtocol().GetContentType();
if (content == wxEmptyString) content = GetMimeTypeFromExt(location);
if (s)
{
{
wxChar buf[256];
wxGetTempFileName( _T("wxhtml"), buf);
@ -98,12 +98,7 @@ wxFSFile* wxInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxStri
m_Cache.Put(right, info);
{ // ok, now copy it:
#if defined(__VISAGECPP__)
// VA thinks this is an ambiguous call
wxFileOutputStream sout((wxString)buf);
#else
wxFileOutputStream sout(buf);
#endif
wxFileOutputStream sout(wxString(buf));
s -> Read(sout); // copy the stream
}
delete s;