From 96d62553bc266145158ccadc2e1b21014a809322 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 3 Feb 2011 11:48:16 +0200 Subject: [PATCH] Make FileLister::acceptFile() a static method. We don't need different acceptFile() implementations per platform so it is better to have one static method. --- cli/filelister.h | 2 +- cli/filelister_unix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/filelister.h b/cli/filelister.h index aa292b701..4c6cd7d03 100644 --- a/cli/filelister.h +++ b/cli/filelister.h @@ -55,7 +55,7 @@ public: * @param filename filename to check * @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? diff --git a/cli/filelister_unix.cpp b/cli/filelister_unix.cpp index ed6d12f4b..f9263eb78 100644 --- a/cli/filelister_unix.cpp +++ b/cli/filelister_unix.cpp @@ -72,7 +72,7 @@ void FileListerUnix::recursiveAddFiles2(std::vector &relative, continue; } - if (Path::sameFileName(path,filename) || FileListerUnix::acceptFile(filename)) + if (Path::sameFileName(path,filename) || FileLister::acceptFile(filename)) { relative.push_back(filename); absolute.push_back(fname);