Files
ladybird/AK
Lucas CHOLLET 18b7ddd0b5 AK: Rename the const overload of FixedMemoryStream::bytes()
Due to overload resolutions rules, this simple code provokes a crash:

ReadonlyBytes readonly_bytes{};
FixedMemoryStream stream{readonly_bytes};
ReadonlyBytes give_them_back{stream.bytes()};
    // -> Panics on VERIFY(m_writing_enabled);
    // but this is fine:
auto bytes = static_cast<FixedMemoryStream const&>(*stream).bytes()

If we need to be explicit about it, let's rename the overload instead of
adding that `static_cast`.
2023-07-27 14:40:00 +01:00
..
2023-05-18 22:49:02 +02:00
2023-05-18 22:49:02 +02:00
2022-12-03 23:52:23 +00:00
2022-12-03 23:52:23 +00:00
2023-03-09 21:43:54 +01:00
2023-03-09 21:43:54 +01:00
2023-05-17 09:08:53 +02:00
2023-03-09 21:43:54 +01:00
2022-12-19 09:29:12 -05:00
2023-04-12 07:33:15 -04:00
2023-07-12 17:03:07 +02:00
2022-12-03 23:52:23 +00:00
2023-07-21 10:47:34 -06:00
2023-04-12 19:37:35 +02:00
2022-12-11 16:05:23 +00:00
2023-07-25 11:52:02 +02:00
2022-12-03 23:52:23 +00:00
2023-03-14 16:52:44 +01:00
2023-07-06 15:06:20 +01:00
2022-12-03 23:52:23 +00:00
2023-03-09 21:43:54 +01:00
2023-05-24 23:18:07 +02:00
2023-03-09 21:43:54 +01:00
2022-12-03 23:52:23 +00:00
2022-12-03 23:52:23 +00:00
2023-03-09 21:43:54 +01:00
2023-03-09 21:43:54 +01:00
2023-07-08 10:32:56 +01:00
2023-07-08 10:32:56 +01:00
2022-12-03 23:52:23 +00:00