Merge pull request #38844 from hbina/patch-5

Avoid copying vector in constructor of PathMD5
This commit is contained in:
Rémi Verschelde 2021-02-25 17:49:47 +01:00 committed by GitHub
commit 5d8025ec66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ private:
PathMD5() {}
PathMD5(const Vector<uint8_t> p_buf) {
PathMD5(const Vector<uint8_t> &p_buf) {
a = *((uint64_t *)&p_buf[0]);
b = *((uint64_t *)&p_buf[8]);
}