1
0
Fork 0
forked from suyu/suyu

disk_filesystem: Make constructors explicit where applicable

This commit is contained in:
Lioncash 2018-04-19 21:27:43 -04:00
parent 17ad56c1dc
commit b05f8ea5b5

View file

@ -43,7 +43,7 @@ protected:
class Disk_Storage : public StorageBackend { class Disk_Storage : public StorageBackend {
public: public:
Disk_Storage(std::shared_ptr<FileUtil::IOFile> file) : file(std::move(file)) {} explicit Disk_Storage(std::shared_ptr<FileUtil::IOFile> file) : file(std::move(file)) {}
ResultVal<size_t> Read(u64 offset, size_t length, u8* buffer) const override; ResultVal<size_t> Read(u64 offset, size_t length, u8* buffer) const override;
ResultVal<size_t> Write(u64 offset, size_t length, bool flush, const u8* buffer) const override; ResultVal<size_t> Write(u64 offset, size_t length, bool flush, const u8* buffer) const override;
@ -60,7 +60,7 @@ private:
class Disk_Directory : public DirectoryBackend { class Disk_Directory : public DirectoryBackend {
public: public:
Disk_Directory(const std::string& path); explicit Disk_Directory(const std::string& path);
~Disk_Directory() override { ~Disk_Directory() override {
Close(); Close();