浏览代码

Avoid copying vector in constructor of PathMD5

Copying the vector is unnecessary here.
Hanif Ariffin 5 年之前
父节点
当前提交
0fa9ea7095
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/io/file_access_pack.h

+ 1 - 1
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]);
 		}