summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanif Ariffin <hanif.ariffin.4326@gmail.com>2020-05-18 18:52:04 -0400
committerGitHub <noreply@github.com>2020-05-18 18:52:04 -0400
commit0fa9ea7095ef8c3ebab0f3f6cbf5f0a71ed8f4d8 (patch)
treef679d42ab0f219fc0eed6d383d8d3ad2a42bd715
parent38250ef54e439d69240f4b514f3bacb05b5d8c12 (diff)
Avoid copying vector in constructor of PathMD5
Copying the vector is unnecessary here.
-rw-r--r--core/io/file_access_pack.h2
1 files changed, 1 insertions, 1 deletions
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<uint8_t> p_buf) {
+ PathMD5(const Vector<uint8_t> &p_buf) {
a = *((uint64_t *)&p_buf[0]);
b = *((uint64_t *)&p_buf[8]);
}