summaryrefslogtreecommitdiff
path: root/absl/strings/cord_buffer.h
diff options
context:
space:
mode:
authorGravatar Rose <83477269+AtariDreams@users.noreply.github.com>2023-02-16 12:27:22 -0500
committerGravatar Rose <83477269+AtariDreams@users.noreply.github.com>2023-03-07 10:11:29 -0500
commitb13195f2dc9a815e8128c8bbd37cf2f4400b4541 (patch)
treea4cbd27f6e63ee30b8b5bd4886d502e399590d77 /absl/strings/cord_buffer.h
parenteba70b1c2f5f1684490edb573302e2fd654f1335 (diff)
Use const and static for member functions
This shows that these are member functions that do not modify a class's data.
Diffstat (limited to 'absl/strings/cord_buffer.h')
-rw-r--r--absl/strings/cord_buffer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/strings/cord_buffer.h b/absl/strings/cord_buffer.h
index a3600ac4..bc0e4e45 100644
--- a/absl/strings/cord_buffer.h
+++ b/absl/strings/cord_buffer.h
@@ -160,7 +160,6 @@ class CordBuffer {
// for more information on buffer capacities and intended usage.
static CordBuffer CreateWithDefaultLimit(size_t capacity);
-
// CordBuffer::CreateWithCustomLimit()
//
// Creates a CordBuffer instance of the desired `capacity` rounded to an
@@ -336,7 +335,7 @@ class CordBuffer {
}
// Returns the available area of the internal SSO data
- absl::Span<char> long_available() {
+ absl::Span<char> long_available() const {
assert(!is_short());
const size_t length = long_rep.rep->length;
return absl::Span<char>(long_rep.rep->Data() + length,