eliminate using namespace

This commit is contained in:
Martin Michelsen
2026-05-25 16:38:31 -07:00
parent 4503d09c77
commit e9c2ac34a3
98 changed files with 6022 additions and 6531 deletions
+3 -4
View File
@@ -421,12 +421,11 @@ std::string encrypt_pr2_data(const std::string& data, size_t decompressed_size,
w.put<U32T<BE>>(seed);
w.write(data);
std::string ret = std::move(w.str());
PSOV2Encryption crypt(seed);
if (BE) {
crypt.encrypt_big_endian(ret.data() + 8, ret.size() - 8);
crypt.encrypt_big_endian(w.str().data() + 8, w.str().size() - 8);
} else {
crypt.decrypt(ret.data() + 8, ret.size() - 8);
crypt.decrypt(w.str().data() + 8, w.str().size() - 8);
}
return ret;
return std::move(w.str());
}