aboutsummaryrefslogtreecommitdiffstats
path: root/native/dicttoolkit/src
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-12-11 21:01:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-12-11 21:01:25 +0000
commitdb2e4888f8fa1559b300d57ab98a8f9cc342439f (patch)
tree6c917c9382fc34ed0d8cda949665cc3cff96ae88 /native/dicttoolkit/src
parent55748c593631b24acf8b214d988bdd8cd3c78247 (diff)
parent895bf97d22050ed8ed88d3df44d533be3cdf1445 (diff)
downloadlatinime-db2e4888f8fa1559b300d57ab98a8f9cc342439f.tar.gz
latinime-db2e4888f8fa1559b300d57ab98a8f9cc342439f.tar.xz
latinime-db2e4888f8fa1559b300d57ab98a8f9cc342439f.zip
Merge "Fix performance-for-range-copy warnings"
Diffstat (limited to 'native/dicttoolkit/src')
-rw-r--r--native/dicttoolkit/src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/dicttoolkit/src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp b/native/dicttoolkit/src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp
index af28131cf..e94a9c2ff 100644
--- a/native/dicttoolkit/src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp
+++ b/native/dicttoolkit/src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp
@@ -93,7 +93,7 @@ const WordProperty *OffdeviceIntermediateDict::getWordProperty(
const OffdeviceIntermediateDictPtNodeArray *ptNodeArray = &mRootPtNodeArray;
for (size_t i = 0; i < codePoints.size();) {
bool foundNext = false;
- for (const auto ptNode : ptNodeArray->getPtNodeList()) {
+ for (const auto& ptNode : ptNodeArray->getPtNodeList()) {
const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints();
if (codePoints[i] < ptNodeCodePoints[0]) {
continue;