From b05f8ea5b50d2fcbfaa906d674f9b8026f0352ab Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Apr 2018 21:27:43 -0400 Subject: disk_filesystem: Make constructors explicit where applicable --- src/core/file_sys/disk_filesystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/file_sys/disk_filesystem.h b/src/core/file_sys/disk_filesystem.h index 05a29bc3a..e774cd08b 100644 --- a/src/core/file_sys/disk_filesystem.h +++ b/src/core/file_sys/disk_filesystem.h @@ -43,7 +43,7 @@ protected: class Disk_Storage : public StorageBackend { public: - Disk_Storage(std::shared_ptr file) : file(std::move(file)) {} + explicit Disk_Storage(std::shared_ptr file) : file(std::move(file)) {} ResultVal Read(u64 offset, size_t length, u8* buffer) const override; ResultVal Write(u64 offset, size_t length, bool flush, const u8* buffer) const override; @@ -60,7 +60,7 @@ private: class Disk_Directory : public DirectoryBackend { public: - Disk_Directory(const std::string& path); + explicit Disk_Directory(const std::string& path); ~Disk_Directory() override { Close(); -- cgit v1.2.3