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

View File

@@ -83,7 +83,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]);
}