nsp: Comply with style and performance guidelines

This commit is contained in:
Zach Hilman 2018-08-25 22:42:54 -04:00
parent 58473309a0
commit e4e55d064e
7 changed files with 48 additions and 29 deletions

View file

@ -237,7 +237,7 @@ void KeyManager::SetKey(S128KeyType id, Key128 key, u64 field1, u64 field2) {
Key128 rights_id;
std::memcpy(rights_id.data(), &field2, sizeof(u64));
std::memcpy(rights_id.data() + sizeof(u64), &field1, sizeof(u64));
WriteKeyToFile(true, fmt::format("{}", Common::HexArrayToString(rights_id)), key);
WriteKeyToFile(true, Common::HexArrayToString(rights_id), key);
}
const auto iter2 = std::find_if(
s128_file_id.begin(), s128_file_id.end(),