util/StringBuffer: use data() instead of &front()

This commit is contained in:
Max Kellermann 2022-05-19 11:12:36 +02:00 committed by Max Kellermann
parent 70808bde64
commit 0a8aca516a

View File

@ -66,11 +66,11 @@ public:
} }
constexpr const_pointer c_str() const noexcept { constexpr const_pointer c_str() const noexcept {
return &the_data.front(); return the_data.data();
} }
pointer data() noexcept { pointer data() noexcept {
return &the_data.front(); return the_data.data();
} }
constexpr value_type front() const noexcept { constexpr value_type front() const noexcept {