bool wxInternetFSHandler::CanOpen(const wxString& location)
{
wxString p = GetProtocol(location);
- return (p == _T("http")) || (p == _T("ftp"));
+ return (p == T("http")) || (p == T("ftp"));
}
wxFSFile* wxInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
{
- wxString right = GetProtocol(location) + _T(":") + GetRightLocation(location);
+ wxString right = GetProtocol(location) + T(":") + GetRightLocation(location);
wxInputStream *s;
wxString content;
wxInetCacheNode *info;
{
wxChar buf[256];
- wxGetTempFileName( _T("wxhtml"), buf);
+ wxGetTempFileName( T("wxhtml"), buf);
info = new wxInetCacheNode(buf, content);
m_Cache.Put(right, info);
{ // ok, now copy it:
- wxFileOutputStream sout(wxString(buf));
+ wxFileOutputStream sout((wxString)buf);
s -> Read(sout); // copy the stream
}
delete s;