Avoid copying vector in constructor of PathMD5
Copying the vector is unnecessary here.
This commit is contained in:
parent
38250ef54e
commit
0fa9ea7095
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue