From 07d4b94c3b5d8876d3c9a5f93048afdd6734fe78 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Sep 1999 16:50:48 +0000 Subject: [PATCH] ambiguous ctor call resolved git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fs_inet.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/common/fs_inet.cpp b/src/common/fs_inet.cpp index dfbc008965..3af1151d62 100644 --- a/src/common/fs_inet.cpp +++ b/src/common/fs_inet.cpp @@ -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;