From 2c2ede8581490b04b7598289aab08e5c837b194e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 17 Aug 2022 09:51:30 -0400 Subject: [PATCH] LibUnicode: Mark UniqueStringStorage::generate as constant This is just to allow it to be invoked from callers who hold a constant UniqueStringStorage instance. --- Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h index aaf68a14b46..b4d38dfb6c4 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h @@ -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;