diff options
author | 2014-09-04 07:30:58 +0000 | |
---|---|---|
committer | 2014-09-04 07:30:59 +0000 | |
commit | 5cfa0237775eeb8094606ed6a6013a6a73e85e5c (patch) | |
tree | 85399b5a86ea5d529e7726c976065282ec0dc0b5 /native/jni/src | |
parent | f7be68e6360864f79ebe6ba293f46d04a2ef0936 (diff) | |
parent | fbddeedff617d101b7617995bdf7c9c7ce7eaf24 (diff) | |
download | latinime-5cfa0237775eeb8094606ed6a6013a6a73e85e5c.tar.gz latinime-5cfa0237775eeb8094606ed6a6013a6a73e85e5c.tar.xz latinime-5cfa0237775eeb8094606ed6a6013a6a73e85e5c.zip |
Merge "Add HeaderReadWriteUtilsTest"
Diffstat (limited to 'native/jni/src')
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.cpp | 3 | ||||
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.cpp b/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.cpp index a8f8f284b..d2c3d2fe0 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.cpp +++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.cpp @@ -142,7 +142,8 @@ typedef DictionaryHeaderStructurePolicy::AttributeMap AttributeMap; } /* static */ void HeaderReadWriteUtils::setCodePointVectorAttribute( - AttributeMap *const headerAttributes, const char *const key, const std::vector<int> value) { + AttributeMap *const headerAttributes, const char *const key, + const std::vector<int> &value) { AttributeMap::key_type keyVector; insertCharactersIntoVector(key, &keyVector); (*headerAttributes)[keyVector] = value; diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.h b/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.h index 9b90488fc..1ab2eec69 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.h +++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_read_write_utils.h @@ -64,7 +64,7 @@ class HeaderReadWriteUtils { */ static void setCodePointVectorAttribute( DictionaryHeaderStructurePolicy::AttributeMap *const headerAttributes, - const char *const key, const std::vector<int> value); + const char *const key, const std::vector<int> &value); static void setBoolAttribute( DictionaryHeaderStructurePolicy::AttributeMap *const headerAttributes, |