control_metadata: Remove unnecessary reference to base file

This commit is contained in:
Zach Hilman 2018-08-11 22:45:30 -04:00
parent 149bda980a
commit dda8ef11c7
2 changed files with 1 additions and 2 deletions

View file

@ -16,7 +16,7 @@ std::string LanguageEntry::GetDeveloperName() const {
return Common::StringFromFixedZeroTerminatedBuffer(developer_name.data(), 0x100); return Common::StringFromFixedZeroTerminatedBuffer(developer_name.data(), 0x100);
} }
NACP::NACP(VirtualFile file_) : file(std::move(file_)), raw(std::make_unique<RawNACP>()) { NACP::NACP(VirtualFile file) : raw(std::make_unique<RawNACP>()) {
file->ReadObject(raw.get()); file->ReadObject(raw.get());
} }

View file

@ -81,7 +81,6 @@ public:
std::string GetVersionString() const; std::string GetVersionString() const;
private: private:
VirtualFile file;
std::unique_ptr<RawNACP> raw; std::unique_ptr<RawNACP> raw;
}; };