X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c7b506103cfc078a821860766e31c47d595e07f..205bdf2069b93743848d69a39c0bd4a32e9ff8b7:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 64e1695638..b6e4b63812 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -53,7 +53,7 @@ // ---------------------------------------------------------------------------- // Name for map file. -#define WXEXTHELP_MAPFILE _T("wxhelp.map") +#define WXEXTHELP_MAPFILE wxT("wxhelp.map") // Character introducing comments/documentation field in map file. #define WXEXTHELP_COMMENTCHAR ';' @@ -90,11 +90,13 @@ wxExtHelpController::~wxExtHelpController() DeleteList(); } +#if WXWIN_COMPATIBILITY_2_8 void wxExtHelpController::SetBrowser(const wxString& browsername, bool isNetscape) { m_BrowserName = browsername; m_BrowserIsNetscape = isNetscape; } +#endif void wxExtHelpController::SetViewer(const wxString& viewer, long flags) { @@ -105,7 +107,7 @@ void wxExtHelpController::SetViewer(const wxString& viewer, long flags) bool wxExtHelpController::DisplayHelp(const wxString &relativeURL) { // construct hte URL to open -- it's just a file - wxString url(_T("file://") + m_helpDir); + wxString url(wxT("file://") + m_helpDir); url << wxFILE_SEP_PATH << relativeURL; // use the explicit browser program if specified @@ -120,7 +122,7 @@ bool wxExtHelpController::DisplayHelp(const wxString &relativeURL) return true; } - if ( wxExecute(m_BrowserName + _T(' ') + url, wxEXEC_SYNC) != -1 ) + if ( wxExecute(m_BrowserName + wxT(' ') + url, wxEXEC_SYNC) != -1 ) return true; } //else: either no browser explicitly specified or we failed to open it @@ -153,7 +155,7 @@ void wxExtHelpController::DeleteList() } delete m_MapList; - m_MapList = (wxList*) NULL; + m_MapList = NULL; } } @@ -174,7 +176,7 @@ bool wxExtHelpController::ParseMapFileLine(const wxString& line) p++; // skip empty lines and comments - if ( *p == _T('\0') || *p == WXEXTHELP_COMMENTCHAR ) + if ( *p == wxT('\0') || *p == WXEXTHELP_COMMENTCHAR ) return true; // the line is of the form "num url" so we must have an integer now @@ -240,7 +242,7 @@ bool wxExtHelpController::LoadFile(const wxString& file) if ( ! dirExists ) { // try without encoding - const wxString locNameWithoutEncoding = locName.BeforeLast(_T('.')); + const wxString locNameWithoutEncoding = locName.BeforeLast(wxT('.')); if ( !locNameWithoutEncoding.empty() ) { helpDirLoc = helpDir; @@ -252,7 +254,7 @@ bool wxExtHelpController::LoadFile(const wxString& file) if ( !dirExists ) { // try without country part - wxString locNameWithoutCountry = locName.BeforeLast(_T('_')); + wxString locNameWithoutCountry = locName.BeforeLast(wxT('_')); if ( !locNameWithoutCountry.empty() ) { helpDirLoc = helpDir;