From 0fa9ea7095ef8c3ebab0f3f6cbf5f0a71ed8f4d8 Mon Sep 17 00:00:00 2001 From: Hanif Ariffin Date: Mon, 18 May 2020 18:52:04 -0400 Subject: Avoid copying vector in constructor of PathMD5 Copying the vector is unnecessary here. --- core/io/file_access_pack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h index 320a6cb216..a6bc5435b4 100644 --- a/core/io/file_access_pack.h +++ b/core/io/file_access_pack.h @@ -83,7 +83,7 @@ private: PathMD5() {} - PathMD5(const Vector p_buf) { + PathMD5(const Vector &p_buf) { a = *((uint64_t *)&p_buf[0]); b = *((uint64_t *)&p_buf[8]); } -- cgit v1.2.3