Skip to content

Commit

Permalink
Appended reference to const types in loop to prevent copying.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Sep 15, 2021
1 parent 7bc5339 commit 15026c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/emoji/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ Data PrepareData(const QString &dataPath, const std::vector<QString> &oldDataPat
for (const auto &[key, list] : Aliases) {
if (AliasesAdded.find(key) == AliasesAdded.end()) {
QStringList expanded;
for (const auto ch : key) {
for (const auto &ch : key) {
expanded.push_back(QString::number(ch.unicode()));
}
common::logError(kErrorBadData, "input")
Expand Down

0 comments on commit 15026c5

Please sign in to comment.