mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Simplify std::copy
with std::copy_n
+ a surprise `std::memcpy` in VolumeVerifier.cpp.
This commit is contained in:
parent
2b22e6ffc9
commit
7c96762f5f
12 changed files with 16 additions and 19 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "UpdaterCommon/UpdaterCommon.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
@ -150,7 +151,7 @@ Manifest::Hash ComputeHash(const std::string& contents)
|
|||
false);
|
||||
|
||||
Manifest::Hash out;
|
||||
std::copy(full.begin(), full.begin() + 16, out.begin());
|
||||
std::copy_n(full.begin(), 16, out.begin());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue