From 123c0886e6f7bd70f5bfea8353bbea7ccf46ac86 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Thu, 26 Jul 2018 13:10:56 +0200 Subject: [PATCH] RomFSFile: Default constructor --- src/core/hle/romfs.cpp | 2 -- src/core/hle/romfs.h | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/hle/romfs.cpp b/src/core/hle/romfs.cpp index 31064365d4..efd0ec48e2 100644 --- a/src/core/hle/romfs.cpp +++ b/src/core/hle/romfs.cpp @@ -53,8 +53,6 @@ static bool MatchName(const u8* buffer, u32 name_length, const std::u16string& n return name == std::u16string(name_buffer.begin(), name_buffer.end()); } -RomFSFile::RomFSFile() : data(nullptr), length(0) {} - RomFSFile::RomFSFile(const u8* data, u64 length) : data(data), length(length) {} const u8* RomFSFile::Data() const { diff --git a/src/core/hle/romfs.h b/src/core/hle/romfs.h index a6f5b17a1b..41f1d47005 100644 --- a/src/core/hle/romfs.h +++ b/src/core/hle/romfs.h @@ -12,14 +12,14 @@ namespace RomFS { class RomFSFile { public: - RomFSFile(); + RomFSFile() = default; RomFSFile(const u8* data, u64 length); const u8* Data() const; u64 Length() const; private: - const u8* data; - u64 length; + const u8* data = nullptr; + u64 length = 0; }; /**