Avoid copying vector in constructor of PathMD5

Copying the vector is unnecessary here.
This commit is contained in:
Hanif Ariffin 2020-05-18 18:52:04 -04:00 committed by GitHub
parent 38250ef54e
commit 0fa9ea7095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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