mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb/BindingsGenerator: Fix the build
I'm not sure why this didn't break on CI, but none of my machines were able to build without this change.
This commit is contained in:
parent
5f69b0d6ad
commit
cb8664e2e1
Notes:
sideshowbarker
2024-07-17 03:03:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cb8664e2e1
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
// Only write to disk if contents have changed
|
||||
auto previous_contents = TRY(output_file->read_until_eof());
|
||||
TRY(output_file->seek(0, SeekMode::SetPosition));
|
||||
if (previous_contents != output_builder.string_view())
|
||||
if (previous_contents != output_builder.string_view().bytes())
|
||||
TRY(output_file->write_until_depleted(output_builder.string_view().bytes()));
|
||||
// FIXME: Can we add clear_with_capacity to StringBuilder instead of throwing away the allocated buffer?
|
||||
output_builder.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue