X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ec2b48446fa4f17187dcd73c3a314e4030333f6..9cf99fc093f9c45b6b5d8d8b357699d826c9916a:/src/html/htmlhelp.cpp?ds=sidebyside diff --git a/src/html/htmlhelp.cpp b/src/html/htmlhelp.cpp index f263f88d7d..da6c47706c 100644 --- a/src/html/htmlhelp.cpp +++ b/src/html/htmlhelp.cpp @@ -23,10 +23,8 @@ file is only left to point out the problem and will be removed r.s.n. #endif #ifndef WXPRECOMP -#include #endif - #include #include #include @@ -166,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; }