commit | ae7e314f5bbdbe5697ae33e754bb417d08380297 | [log] [tgz] |
---|---|---|
author | Peter Kasting <[email protected]> | Wed Nov 27 18:04:07 2024 |
committer | Chromium LUCI CQ <[email protected]> | Wed Nov 27 18:04:07 2024 |
tree | 6010de76307027ecfdd6c65c59b5d1f2d7d1050d | |
parent | 3c72ccb31b802e507ea330d8120fabe85ce19c3b [diff] [blame] |
Remove usage of base::make_span(): base/ Replace with span() CTAD use, or more targeted helpers. Also removes some unnecessary uses of base::. Bug: 341907909 Change-Id: I521bbcd1bc6aa622be75093fc82a02543cb31dc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6052443 Auto-Submit: Peter Kasting <[email protected]> Reviewed-by: Tom Sepez <[email protected]> Commit-Queue: Peter Kasting <[email protected]> Code-Coverage: [email protected] <[email protected]> Commit-Queue: Tom Sepez <[email protected]> Cr-Commit-Position: refs/heads/main@{#1388924}
diff --git a/base/token.h b/base/token.h index d90ceeb..e52c9747 100644 --- a/base/token.h +++ b/base/token.h
@@ -48,9 +48,7 @@ constexpr bool is_zero() const { return words_[0] == 0 && words_[1] == 0; } - span<const uint8_t, 16> AsBytes() const { - return as_bytes(make_span(words_)); - } + span<const uint8_t, 16> AsBytes() const { return as_byte_span(words_); } friend constexpr auto operator<=>(const Token& lhs, const Token& rhs) = default;