From 0a8aca516a8e233dd1f239d4328ea98bf7bb2e88 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 May 2022 11:12:36 +0200 Subject: [PATCH] util/StringBuffer: use data() instead of &front() --- src/util/StringBuffer.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/StringBuffer.hxx b/src/util/StringBuffer.hxx index 49593d6c1..e7957757f 100644 --- a/src/util/StringBuffer.hxx +++ b/src/util/StringBuffer.hxx @@ -66,11 +66,11 @@ public: } constexpr const_pointer c_str() const noexcept { - return &the_data.front(); + return the_data.data(); } pointer data() noexcept { - return &the_data.front(); + return the_data.data(); } constexpr value_type front() const noexcept {