title_metadata: Take std::vector by const reference in Load()
This isn't modified in the implementation, so this can be a const reference to eliminate an unnecessary heap reallocation.
This commit is contained in:
@@ -85,7 +85,7 @@ public:
|
||||
#pragma pack(pop)
|
||||
|
||||
Loader::ResultStatus Load(const std::string& file_path);
|
||||
Loader::ResultStatus Load(const std::vector<u8> file_data, std::size_t offset = 0);
|
||||
Loader::ResultStatus Load(const std::vector<u8>& file_data, std::size_t offset = 0);
|
||||
Loader::ResultStatus Save(const std::string& file_path);
|
||||
|
||||
u64 GetTitleID() const;
|
||||
|
Reference in New Issue
Block a user