소스 검색

Merge pull request #38844 from hbina/patch-5

Avoid copying vector in constructor of PathMD5
Rémi Verschelde 4 년 전
부모
커밋
5d8025ec66
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/io/file_access_pack.h

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