Skip to content

Commit 94d19c7

Browse files
committed
Fix build error, formatting
1 parent 38f14b9 commit 94d19c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/source/detail/compression.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ZSTDCompressor {
4242
// Blob (de)compression do not assume format/structure of the input buffer.
4343
// This function can be used in future for compression in on-disk cache.
4444
static std::unique_ptr<char[]> CompressBlob(const char *src, size_t srcSize,
45-
size_t &dstSize, int level) {
45+
size_t &dstSize, int level) {
4646
auto &instance = GetSingletonInstance();
4747

4848
// Lazy initialize compression context.
@@ -79,7 +79,7 @@ class ZSTDCompressor {
7979
ZSTD_getErrorName(dstSize));
8080

8181
// Pass ownership of the buffer to the caller.
82-
return std::move(dstBuffer);
82+
return dstBuffer;
8383
}
8484

8585
static size_t GetDecompressedSize(const char *src, size_t srcSize) {
@@ -94,7 +94,7 @@ class ZSTDCompressor {
9494
}
9595

9696
static std::unique_ptr<char[]> DecompressBlob(const char *src, size_t srcSize,
97-
size_t &dstSize) {
97+
size_t &dstSize) {
9898
auto &instance = GetSingletonInstance();
9999

100100
// Lazy initialize decompression context.
@@ -135,7 +135,7 @@ class ZSTDCompressor {
135135
}
136136

137137
// Pass ownership of the buffer to the caller.
138-
return std::move(dstBuffer);
138+
return dstBuffer;
139139
}
140140

141141
// Data fields

0 commit comments

Comments
 (0)