mirror of
https://github.com/google/snappy.git
synced 2024-12-03 14:53:15 +00:00
Fix the remaining occurrence of non-const std::string::data()
.
PiperOrigin-RevId: 479818960
This commit is contained in:
parent
974fcc49e8
commit
984b191f0f
|
@ -568,7 +568,7 @@ TEST(Snappy, IOVecSourceEdgeCases) {
|
|||
// Validate that empty leading, trailing, and in-between iovecs are handled:
|
||||
// [] [] ['a'] [] ['b'] [].
|
||||
std::string data = "ab";
|
||||
char* buf = data.data();
|
||||
char* buf = const_cast<char*>(data.data());
|
||||
size_t used_so_far = 0;
|
||||
static const int kLengths[] = {0, 0, 1, 0, 1, 0};
|
||||
struct iovec iov[ARRAYSIZE(kLengths)];
|
||||
|
|
Loading…
Reference in a new issue