13
0

Move PathScanner::operator() into header

This commit is contained in:
Tim Mayberry 2014-06-17 11:48:46 +10:00
parent b457c938cd
commit ea5f9a8ea6
2 changed files with 13 additions and 19 deletions

View File

@ -85,24 +85,6 @@ PathScanner::find_files_matching_regex (vector<string>& result,
regfree (&compiled_pattern);
}
vector<string>
PathScanner::operator() (const string &dirpath, const string &regexp,
bool match_fullpath, bool return_fullpath,
long limit, bool recurse)
{
vector<string> result;
find_files_matching_regex (result,
dirpath,
regexp,
match_fullpath,
return_fullpath,
limit, recurse);
return result;
}
void
PathScanner::find_files_matching_filter (vector<string>& result,

View File

@ -54,7 +54,19 @@ class LIBPBD_API PathScanner
bool match_fullpath = true,
bool return_fullpath = true,
long limit = -1,
bool recurse = false);
bool recurse = false)
{
std::vector<std::string> result;
find_files_matching_regex (result,
dirpath,
regexp,
match_fullpath,
return_fullpath,
limit, recurse);
return result;
}
private: