diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-04 13:52:55 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 17:51:22 +0200 |
commit | 6d484db9b293aac4b8bd790eb7aead3a806f8c7b (patch) | |
tree | c7a93cef8a95006f217d557300151ce5e8735437 /src/buildtool/execution_api/common | |
parent | 0fc0d9118b5e525fa582de0286c8e83bb0da4e16 (diff) | |
download | justbuild-6d484db9b293aac4b8bd790eb7aead3a806f8c7b.tar.gz |
Enable cppcoreguidelines-* checks.
Diffstat (limited to 'src/buildtool/execution_api/common')
-rw-r--r-- | src/buildtool/execution_api/common/bytestream_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/bytestream_utils.cpp b/src/buildtool/execution_api/common/bytestream_utils.cpp index f1b53f05..de66d58e 100644 --- a/src/buildtool/execution_api/common/bytestream_utils.cpp +++ b/src/buildtool/execution_api/common/bytestream_utils.cpp @@ -33,14 +33,14 @@ namespace { for (std::size_t length = 0; shift + length < request.size(); ++length) { if (request.at(shift + length) == '/') { - parts.emplace_back(request.data() + shift, length); + parts.emplace_back(&request.at(shift), length); shift += length + 1; length = 0; } } if (shift < request.size()) { - parts.emplace_back(request.data() + shift, request.size() - shift); + parts.emplace_back(&request.at(shift), request.size() - shift); } } catch (...) { return {}; |