X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a94433573bab16bcfe85985333323523e4b8517..50d0b061eeeb4f87594ccea7508a7c5975fb36dd:/src/html/htmlhelp.cpp?ds=sidebyside diff --git a/src/html/htmlhelp.cpp b/src/html/htmlhelp.cpp index 71898962a1..da6c47706c 100644 --- a/src/html/htmlhelp.cpp +++ b/src/html/htmlhelp.cpp @@ -5,6 +5,10 @@ // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// +#error This file should not be compiled! Update your build system! \ +(configure users, rerun configure to get a new Makefile) \ +Instead of htmlhelp[_io], use helpdata, helpfrm and helpctrl. This \ +file is only left to point out the problem and will be removed r.s.n. #ifdef __GNUG__ #pragma implementation "htmlhelp.h" @@ -19,10 +23,8 @@ #endif #ifndef WXPRECOMP -#include #endif - #include #include #include @@ -162,12 +164,12 @@ static char* ReadLine(char *line, char *buf) static wxString SafeFileName(const wxString& s) { wxString res = s; - res.Replace(":", "_", TRUE); - res.Replace(" ", "_", TRUE); - res.Replace("/", "_", TRUE); - res.Replace("\\", "_", TRUE); - res.Replace("#", "_", TRUE); - res.Replace(".", "_", TRUE); + res.Replace(_T(":"), _T("_"), TRUE); + res.Replace(_T(" "), _T("_"), TRUE); + res.Replace(_T("/"), _T("_"), TRUE); + res.Replace(_T("\\"), _T("_"), TRUE); + res.Replace(_T("#"), _T("_"), TRUE); + res.Replace(_T("."), _T("_"), TRUE); return res; }