aboutsummaryrefslogtreecommitdiffstats
path: root/native/dicttoolkit/src
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-11 16:20:39 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-11 16:20:39 -0800
commit535cd61e636abbda6014ab0f48f65b264114dcac (patch)
tree7fe905ed76e2d644cec292b875a2bae6cb39eae3 /native/dicttoolkit/src
parent6c06f060794cc6e9d7ccf0a4e35a60adfe479da1 (diff)
parent947f8ee063d8fa476080e61ef3e598f4f656d379 (diff)
downloadlatinime-535cd61e636abbda6014ab0f48f65b264114dcac.tar.gz
latinime-535cd61e636abbda6014ab0f48f65b264114dcac.tar.xz
latinime-535cd61e636abbda6014ab0f48f65b264114dcac.zip
Merge "Fix performance-for-range-copy warnings" am: db2e4888f8
am: 947f8ee063 Change-Id: I153c9732d7fd1733f196b9807d99cfe59fcde012
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;