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:
Timothy Flynn 2022-08-17 09:51:30 -04:00 committed by Linus Groh
parent d3621ac177
commit 2c2ede8581
Notes: sideshowbarker 2024-07-17 08:10:41 +09:00

View file

@ -190,7 +190,7 @@ public:
// 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
// represent the strings.
void generate(SourceGenerator& generator)
void generate(SourceGenerator& generator) const
{
constexpr size_t max_values_per_row = 300;
size_t values_in_current_row = 0;