mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibUnicode: Mark UniqueStringStorage::generate as constant
This is just to allow it to be invoked from callers who hold a constant UniqueStringStorage instance.
This commit is contained in:
parent
d3621ac177
commit
2c2ede8581
Notes:
sideshowbarker
2024-07-17 08:10:41 +09:00
Author: https://github.com/trflynn89
Commit: 2c2ede8581
Pull-request: https://github.com/SerenityOS/serenity/pull/14899
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ public:
|
||||||
// section of the shared library. If StringViews are generated directly, the table will be located
|
// section of the shared library. If StringViews are generated directly, the table will be located
|
||||||
// in the initialized data section. So instead, we generate run-length encoded (RLE) arrays to
|
// in the initialized data section. So instead, we generate run-length encoded (RLE) arrays to
|
||||||
// represent the strings.
|
// represent the strings.
|
||||||
void generate(SourceGenerator& generator)
|
void generate(SourceGenerator& generator) const
|
||||||
{
|
{
|
||||||
constexpr size_t max_values_per_row = 300;
|
constexpr size_t max_values_per_row = 300;
|
||||||
size_t values_in_current_row = 0;
|
size_t values_in_current_row = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue