mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 02:08:53 +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
Notes:
sideshowbarker
2024-07-19 11:52:49 +09:00
Author: https://github.com/awesomekling
Commit: 8f45a259fc
30 changed files with 89 additions and 92 deletions
|
@ -820,7 +820,7 @@ void load_history()
|
|||
while (history_file->can_read_line()) {
|
||||
auto b = history_file->read_line(1024);
|
||||
// skip the newline and terminating bytes
|
||||
editor.add_to_history(String(reinterpret_cast<const char*>(b.pointer()), b.size() - 2));
|
||||
editor.add_to_history(String(reinterpret_cast<const char*>(b.data()), b.size() - 2));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue