From: Mikko Rasa Date: Mon, 11 Jun 2007 06:38:33 +0000 (+0000) Subject: globcasematch takes a std::string, not Path X-Git-Tag: fs-1.0~13 X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=c8c033803937c2f89f6117c903465303d5ae8ea2 globcasematch takes a std::string, not Path --- diff --git a/source/utils.cpp b/source/utils.cpp index 6c48d62..31ab53b 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -164,7 +164,7 @@ Filename splitext(const string &fn) int fnmatch(const string &pat, const Path &fn) { #ifdef WIN32 - return globcasematch(pat, fn); + return globcasematch(pat, fn.str()); #else return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME); #endif