util/StringBuffer: use data() instead of &front()
This commit is contained in:
parent
70808bde64
commit
0a8aca516a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user