diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-25 17:49:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 17:49:47 +0100 |
commit | 5d8025ec661a1ae12c8b15e198018187c9542a1f (patch) | |
tree | ff45e9b7df28a6d19a664c61777f4a0ed1ae74c6 | |
parent | ee5ea64e83fc8b3a0eb1825d22fa8e6006f96b53 (diff) | |
parent | 0fa9ea7095ef8c3ebab0f3f6cbf5f0a71ed8f4d8 (diff) |
Merge pull request #38844 from hbina/patch-5
Avoid copying vector in constructor of PathMD5
-rw-r--r-- | core/io/file_access_pack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h index 3c84e6b656..343adbe592 100644 --- a/core/io/file_access_pack.h +++ b/core/io/file_access_pack.h @@ -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]); } |