diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-11-13 10:02:08 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-11-13 10:02:10 -0500 |
| commit | fd6e6763263a1bb7408d95d8bc8f67e7b5b19a2c (patch) | |
| tree | dfe70f93db8a3809ff056059740b4d970515407a /src/core/file_sys/xts_archive.cpp | |
| parent | 1f7f9e8c503adc9ba828ff498a2efec6cc65a79b (diff) | |
xts_archive: Remove redundant std::string constructor
We can just call the .data() member of path instead of constructing a
completely new string.
Diffstat (limited to 'src/core/file_sys/xts_archive.cpp')
| -rw-r--r-- | src/core/file_sys/xts_archive.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp index 4bc5cb2eeb..f5f8b91c96 100644 --- a/src/core/file_sys/xts_archive.cpp +++ b/src/core/file_sys/xts_archive.cpp @@ -93,8 +93,7 @@ Loader::ResultStatus NAX::Parse(std::string_view path) { std::size_t i = 0; for (; i < sd_keys.size(); ++i) { std::array<Core::Crypto::Key128, 2> nax_keys{}; - if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, std::string(path).c_str(), - path.size())) { + if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, path.data(), path.size())) { return Loader::ResultStatus::ErrorNAXKeyHMACFailed; } |
