Skip to content

Commit

Permalink
LibUnicode: Mark UniqueStringStorage::generate as constant
Browse files Browse the repository at this point in the history
This is just to allow it to be invoked from callers who hold a constant
UniqueStringStorage instance.
  • Loading branch information
trflynn89 authored and linusg committed Aug 17, 2022
1 parent d3621ac commit 2c2ede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class UniqueStringStorage : public UniqueStorage<String, StringIndexType> {
// 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;
Expand Down

0 comments on commit 2c2ede8

Please sign in to comment.