X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..c580f45efe9406261d537f2dada51650eb054be6:/samples/html/help/help.cpp?ds=sidebyside diff --git a/samples/html/help/help.cpp b/samples/html/help/help.cpp index 783cda08fd..0e6ed46d88 100644 --- a/samples/html/help/help.cpp +++ b/samples/html/help/help.cpp @@ -155,19 +155,11 @@ help.UseConfig(wxConfig::Get()); bool ret; -#if defined(__WXMAC__) && !defined(__DARWIN__) - ret = help.AddBook(wxT(":helpfiles:testing.hhp")); -#else help.SetTempDir(wxT(".")); - ret = help.AddBook(wxT("helpfiles/testing.hhp")); -#endif + ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX)); if (! ret) wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp")); -#if defined(__WXMAC__) && !defined(__DARWIN__) - ret = help.AddBook(wxT(":helpfiles:another.hhp")); -#else - ret = help.AddBook(wxT("helpfiles/another.hhp")); -#endif + ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX)); if (! ret) wxMessageBox(_("Failed adding book helpfiles/another.hhp")); }