Skip to content

Commit

Permalink
refactor(dict_compiler.cc): correct the usage of auto in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jun 11, 2023
1 parent 210ab6c commit c616687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/dict/dict_compiler.cc
Expand Up @@ -236,7 +236,7 @@ bool DictCompiler::BuildTable(int table_index,
for (const auto& s : collector.syllabary) {
syllable_to_id[s] = syllable_id++;
}
for (auto r : collector.entries) {
for (const auto& r : collector.entries) {
Code code;
for (const auto& s : r->raw_code) {
code.push_back(syllable_to_id[s]);
Expand Down

0 comments on commit c616687

Please sign in to comment.