summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 04:16:55 +0200
committerGitHub <noreply@github.com>2018-04-20 04:16:55 +0200
commit2ef04f69b2e6288b42311100a9c5588f91dcd7c1 (patch)
treea7741a3c50febf3f7bd2f097e413f1fe24aae8af
parentMerge pull request #359 from lioncash/redundant (diff)
parentdisk_filesystem: Remove unused total_entries_in_directory member from Disk_Directory (diff)
downloadyuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar.gz
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar.bz2
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar.lz
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar.xz
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.tar.zst
yuzu-2ef04f69b2e6288b42311100a9c5588f91dcd7c1.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/disk_filesystem.cpp2
-rw-r--r--src/core/file_sys/disk_filesystem.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp
index 263392930..ca1323873 100644
--- a/src/core/file_sys/disk_filesystem.cpp
+++ b/src/core/file_sys/disk_filesystem.cpp
@@ -183,7 +183,7 @@ bool Disk_Storage::SetSize(const u64 size) const {
return true;
}
-Disk_Directory::Disk_Directory(const std::string& path) : directory() {
+Disk_Directory::Disk_Directory(const std::string& path) {
unsigned size = FileUtil::ScanDirectoryTree(path, directory);
directory.size = size;
directory.isDirectory = true;
diff --git a/src/core/file_sys/disk_filesystem.h b/src/core/file_sys/disk_filesystem.h
index 05a29bc3a..8f9e1145a 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<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> 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();
@@ -74,7 +74,6 @@ public:
}
protected:
- u32 total_entries_in_directory;
FileUtil::FSTEntry directory;
// We need to remember the last entry we returned, so a subsequent call to Read will continue