Make FileLister::acceptFile() a static method.
We don't need different acceptFile() implementations per platform so it is better to have one static method.
This commit is contained in:
parent
9b9b9c99f5
commit
96d62553bc
|
@ -55,7 +55,7 @@ public:
|
||||||
* @param filename filename to check
|
* @param filename filename to check
|
||||||
* @return returns true if the file extension indicates it should be checked
|
* @return returns true if the file extension indicates it should be checked
|
||||||
*/
|
*/
|
||||||
virtual bool acceptFile(const std::string &filename);
|
static bool acceptFile(const std::string &filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Is given path a directory?
|
* @brief Is given path a directory?
|
||||||
|
|
|
@ -72,7 +72,7 @@ void FileListerUnix::recursiveAddFiles2(std::vector<std::string> &relative,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Path::sameFileName(path,filename) || FileListerUnix::acceptFile(filename))
|
if (Path::sameFileName(path,filename) || FileLister::acceptFile(filename))
|
||||||
{
|
{
|
||||||
relative.push_back(filename);
|
relative.push_back(filename);
|
||||||
absolute.push_back(fname);
|
absolute.push_back(fname);
|
||||||
|
|
Loading…
Reference in New Issue