mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-26 21:18:44 +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:
@@ -44,7 +44,7 @@ void CConfigFile::reparse()
|
||||
|
||||
while (file->can_read_line()) {
|
||||
auto line = file->read_line(BUFSIZ);
|
||||
auto* cp = (const char*)line.pointer();
|
||||
auto* cp = (const char*)line.data();
|
||||
|
||||
while (*cp && (*cp == ' ' || *cp == '\t' || *cp == '\n'))
|
||||
++cp;
|
||||
|
||||
Reference in New Issue
Block a user