fix: modernize-use-nodiscard clang-tidy warnings (#44832)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
fe3467e187
commit
51e31de79e
9 changed files with 14 additions and 14 deletions
|
@ -141,7 +141,7 @@ class BufferDataSource : public mojo::DataPipeProducer::DataSource {
|
|||
|
||||
private:
|
||||
// mojo::DataPipeProducer::DataSource:
|
||||
uint64_t GetLength() const override { return buffer_.size(); }
|
||||
[[nodiscard]] uint64_t GetLength() const override { return buffer_.size(); }
|
||||
ReadResult Read(uint64_t offset, base::span<char> buffer) override {
|
||||
ReadResult result;
|
||||
if (offset <= buffer_.size()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue