Specify "override" when function is override

This commit is contained in:
Sebastian Messmer 2015-11-28 16:50:25 +01:00
parent 5eab16b360
commit f670b0f80c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public:
return rename(from.c_str(), to.c_str());
}
MOCK_METHOD2(rename, void(const char*, const char*));
cpputils::unique_ref<std::vector<fspp::Dir::Entry>> readDir(const boost::filesystem::path &path) {
cpputils::unique_ref<std::vector<fspp::Dir::Entry>> readDir(const boost::filesystem::path &path) override {
return cpputils::nullcheck(std::unique_ptr<std::vector<fspp::Dir::Entry>>(readDir(path.c_str()))).value();
}
MOCK_METHOD1(readDir, std::vector<fspp::Dir::Entry>*(const char*));