Use optional::value() instead of optional::get()
This commit is contained in:
parent
2fa7d656e7
commit
c5822b97f4
@ -65,7 +65,7 @@ public:
|
|||||||
}
|
}
|
||||||
MOCK_METHOD2(rename, void(const char*, const char*));
|
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) {
|
||||||
return std::move(cpputils::nullcheck(std::unique_ptr<std::vector<fspp::Dir::Entry>>(readDir(path.c_str()))).get());
|
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*));
|
MOCK_METHOD1(readDir, std::vector<fspp::Dir::Entry>*(const char*));
|
||||||
void utimens(const boost::filesystem::path &path, const timespec ts[2]) override {
|
void utimens(const boost::filesystem::path &path, const timespec ts[2]) override {
|
||||||
|
Loading…
Reference in New Issue
Block a user