diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-12-06 20:25:32 -0500 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-27 00:16:55 -0500 |
| commit | 5c4259ec1a499528e132b1d41f7559f73bfd1143 (patch) | |
| tree | 0e91d08e514f4e3919e38e59d88cd61d617e7250 /src/core/file_sys/control_metadata.h | |
| parent | 4a6ba5807343b668861efbd8367e39640cafc9f4 (diff) | |
control_metadata: Use value member instead of unique_ptr to store struct
Serves no actual purpose in this instance besides making NACP's copy assignment deleted, which is not intended behavior.
Diffstat (limited to 'src/core/file_sys/control_metadata.h')
| -rw-r--r-- | src/core/file_sys/control_metadata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index bfaad46b4..d5c2ed2b5 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -72,6 +72,7 @@ extern const std::array<const char*, 15> LANGUAGE_NAMES; // These store application name, dev name, title id, and other miscellaneous data. class NACP { public: + explicit NACP(); explicit NACP(VirtualFile file); ~NACP(); @@ -84,7 +85,7 @@ public: std::vector<u8> GetRawBytes() const; private: - std::unique_ptr<RawNACP> raw; + RawNACP raw; }; } // namespace FileSys |
