X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2432b92dd7a837db13d3938a56c1959decd03203..c84c52de6f534df50dc6348b839c98029fa3f8ee:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index ba6b8c7f24..3127f1c51e 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -103,8 +103,9 @@ WXDLLEXPORT char* wxExpandPath(char *dest, const char *path); // Contract w.r.t environment ( -> ${OPENWINHOME}/lib) // and make (if under the home tree) relative to home // [caller must copy-- volatile] -WXDLLEXPORT char* wxContractPath (const wxString& filename, - const wxString& envname = wxEmptyString, const wxString& user = wxEmptyString); +WXDLLEXPORT char* wxContractPath(const wxString& filename, + const wxString& envname = "", + const wxString& user = ""); // Destructive removal of /./ and /../ stuff WXDLLEXPORT char* wxRealPath(char *path); @@ -209,7 +210,11 @@ class WXDLLEXPORT wxPathList : public wxStringList { public: void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable + void Add(const wxString& path); + // Avoid compiler warning + wxNode *Add(const char *s) { return wxStringList::Add(s); } + wxString FindValidPath(const wxString& filename); // Find the first full path // for which the file exists wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path