From b13195f2dc9a815e8128c8bbd37cf2f4400b4541 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 16 Feb 2023 12:27:22 -0500 Subject: Use const and static for member functions This shows that these are member functions that do not modify a class's data. --- absl/strings/cord_buffer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'absl/strings/cord_buffer.h') 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 long_available() { + absl::Span long_available() const { assert(!is_short()); const size_t length = long_rep.rep->length; return absl::Span(long_rep.rep->Data() + length, -- cgit v1.2.3