summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/file_chunker.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-30 16:16:20 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 13:37:39 +0200
commit030af3e7af210617df00bf850476df6b46fb004d (patch)
tree6bfaff768b035c382fe0db07909ecd1f908f1eaf /src/buildtool/storage/file_chunker.cpp
parentce23db59c6399199fa55b4b7dc8880522e2f1bca (diff)
downloadjustbuild-030af3e7af210617df00bf850476df6b46fb004d.tar.gz
Enable readability-* checks.
Diffstat (limited to 'src/buildtool/storage/file_chunker.cpp')
-rw-r--r--src/buildtool/storage/file_chunker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/storage/file_chunker.cpp b/src/buildtool/storage/file_chunker.cpp
index 08f0dc11..2a25cbf8 100644
--- a/src/buildtool/storage/file_chunker.cpp
+++ b/src/buildtool/storage/file_chunker.cpp
@@ -59,7 +59,7 @@ auto FileChunker::NextChunk() noexcept -> std::optional<std::string> {
auto remaining = size_ - pos_;
if (remaining < max_chunk_size_ and not stream_.eof()) {
// Move the remaining bytes of the buffer to the front.
- buffer_.copy(&buffer_[0], remaining, pos_);
+ buffer_.copy(buffer_.data(), remaining, pos_);
auto ssize = static_cast<std::streamsize>(buffer_.size() - remaining);
// Fill the buffer with stream content.
stream_.read(&buffer_[remaining], ssize);