mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Move PathScanner::operator() into header
This commit is contained in:
parent
7974046301
commit
2334880bc9
2 changed files with 13 additions and 19 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue