Move PathScanner::operator() into header
This commit is contained in:
parent
b457c938cd
commit
ea5f9a8ea6
@ -85,24 +85,6 @@ PathScanner::find_files_matching_regex (vector<string>& result,
|
||||
|
||||
regfree (&compiled_pattern);
|
||||
}
|
||||
|
||||
vector<string>
|
||||
PathScanner::operator() (const string &dirpath, const string ®exp,
|
||||
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,
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user