mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
AK: Fix build.
This commit is contained in:
parent
c98bbff0cb
commit
8feecf6c77
Notes:
sideshowbarker
2024-07-19 14:44:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8feecf6c77e
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ ByteBuffer String::to_byte_buffer() const
|
|||
String String::from_byte_buffer(const ByteBuffer& buffer, ShouldChomp should_chomp)
|
||||
{
|
||||
if (buffer.is_null())
|
||||
return nullptr;
|
||||
return { };
|
||||
if (buffer.is_empty())
|
||||
return empty();
|
||||
return String((const char*)buffer.pointer(), buffer.size(), should_chomp);
|
||||
|
|
Loading…
Reference in a new issue