Skip to content

Commit eb4f8bf

Browse files
committed
fix(IOUtils): update hash data handling
* Replace `QByteArrayView` with `QByteArray::fromRawData` for better memory management. * Ensures correct handling of raw data in hash computation.
1 parent 7aa3556 commit eb4f8bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/utils/IOUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ auto GetFileHashQt(const QString& file_path,
4747
if (n < 0) return {};
4848
if (n == 0) break;
4949

50-
hash.addData(QByteArrayView(buffer.Data(), n));
50+
hash.addData(QByteArray::fromRawData(buffer.Data(), n));
5151
}
5252

5353
return hash.result();

0 commit comments

Comments
 (0)