mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
This commit is contained in:
parent
dd696e7c75
commit
8f45a259fc
30 changed files with 89 additions and 92 deletions
|
@ -27,7 +27,7 @@ static String read_var(const String& name)
|
|||
fprintf(stderr, "read: %s", f->error_string());
|
||||
exit(1);
|
||||
}
|
||||
return String((const char*)b.pointer(), b.size(), Chomp);
|
||||
return String((const char*)b.data(), b.size(), Chomp);
|
||||
}
|
||||
|
||||
static void write_var(const String& name, const String& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue