X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76cfd1bf95045676ab0078c45e8b5c9f2c021632..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/private/fswatcher.h?ds=sidebyside diff --git a/include/wx/private/fswatcher.h b/include/wx/private/fswatcher.h index abdc8e244c..4b7a894428 100644 --- a/include/wx/private/fswatcher.h +++ b/include/wx/private/fswatcher.h @@ -89,6 +89,12 @@ public: return true; } + // Check whether any filespec matches the file's ext (if present) + bool MatchesFilespec(const wxFileName& fn, const wxString& filespec) const + { + return filespec.empty() || wxMatchWild(filespec, fn.GetFullName()); + } + protected: virtual bool DoAdd(wxSharedPtr watch) = 0;