From cb8664e2e1ea0febda97d13bd9f4c7a07feefd20 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 31 Jul 2023 07:39:49 +0200 Subject: [PATCH] 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. --- .../Tools/CodeGenerators/LibWeb/BindingsGenerator/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/main.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/main.cpp index dd517d48d3..b42cb34630 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/main.cpp @@ -133,7 +133,7 @@ ErrorOr 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();