X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bfd90b3e73c6df033d2ba09005a7b22fb42c161..a66bf817a6ba833ad47cefc9fa8948ef8045a59d:/src/common/webviewfshandler.cpp diff --git a/src/common/webviewfshandler.cpp b/src/common/webviewfshandler.cpp index bf50748166..c5827dae26 100644 --- a/src/common/webviewfshandler.cpp +++ b/src/common/webviewfshandler.cpp @@ -1,38 +1,38 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: webviewfshandler.cpp -// Purpose: Custom webview handler for virtual file system -// Author: Nick Matthews -// Id: $Id$ -// Copyright: (c) 2012 Steven Lamerton -// Licence: wxWindows licence -///////////////////////////////////////////////////////////////////////////// - -// For compilers that support precompilation, includes "wx.h". -#include "wx/wxprec.h" - -#if wxUSE_WEBVIEW - -#if defined(__BORLANDC__) - #pragma hdrstop -#endif - -#include "wx/webviewfshandler.h" -#include "wx/filesys.h" - -wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) : - wxWebViewHandler(scheme) -{ - m_fileSystem = new wxFileSystem(); -} - -wxWebViewFSHandler::~wxWebViewFSHandler() -{ - wxDELETE(m_fileSystem); -} - -wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri) -{ - return m_fileSystem->OpenFile(uri); -} - -#endif // wxUSE_WEBVIEW +///////////////////////////////////////////////////////////////////////////// +// Name: webviewfshandler.cpp +// Purpose: Custom webview handler for virtual file system +// Author: Nick Matthews +// Id: $Id$ +// Copyright: (c) 2012 Steven Lamerton +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#if wxUSE_WEBVIEW + +#if defined(__BORLANDC__) + #pragma hdrstop +#endif + +#include "wx/webviewfshandler.h" +#include "wx/filesys.h" + +wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) : + wxWebViewHandler(scheme) +{ + m_fileSystem = new wxFileSystem(); +} + +wxWebViewFSHandler::~wxWebViewFSHandler() +{ + wxDELETE(m_fileSystem); +} + +wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri) +{ + return m_fileSystem->OpenFile(uri); +} + +#endif // wxUSE_WEBVIEW