X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4367345099df9e276e4805147ac40ec3e0349021..a80e5f9e5b9d3d79865a0140caa714fafcd3808c:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 6b6c285858..3f00a7404f 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -367,12 +367,13 @@ WXDLLIMPEXP_BASE time_t wxFileModificationTime(const wxString& filename); class WXDLLIMPEXP_BASE wxPathList : public wxStringList { public: + // avoid GCC warning about virtual functions w/o virtual dtor + virtual ~wxPathList() {} + // Adds all paths in environment variable void AddEnvList(const wxString& envVariable); void Add(const wxString& path); - // Avoid compiler warning - wxNode *Add(const wxChar *s) { return wxStringList::Add(s); } // Find the first full path for which the file exists wxString FindValidPath(const wxString& filename); // Find the first full path for which the file exists; ensure it's an @@ -384,7 +385,7 @@ public: bool Member(const wxString& path); private: - DECLARE_DYNAMIC_CLASS(wxPathList) + // DECLARE_DYNAMIC_CLASS(wxPathList) }; #endif