diff options
author | 2013-03-05 06:22:53 +0000 | |
---|---|---|
committer | 2013-03-05 06:22:53 +0000 | |
commit | ff745e9a8adef082859dfbfa3ceeb16a0842980b (patch) | |
tree | ca2a3580453c974b611d27569c32e0d24a0fb6c2 /native/jni/src/proximity_info_state.cpp | |
parent | 75e6fb68e91b440707b399b22fbcfcd67760a949 (diff) | |
parent | 830ba67498c6da53b38212dd9ac5ba318a00de11 (diff) | |
download | latinime-ff745e9a8adef082859dfbfa3ceeb16a0842980b.tar.gz latinime-ff745e9a8adef082859dfbfa3ceeb16a0842980b.tar.xz latinime-ff745e9a8adef082859dfbfa3ceeb16a0842980b.zip |
am 830ba674: refactor MAX_POINT_TO_KEY_LENGTH
* commit '830ba67498c6da53b38212dd9ac5ba318a00de11':
refactor MAX_POINT_TO_KEY_LENGTH
Diffstat (limited to 'native/jni/src/proximity_info_state.cpp')
-rw-r--r-- | native/jni/src/proximity_info_state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/src/proximity_info_state.cpp b/native/jni/src/proximity_info_state.cpp index 3ecaade2d..00e7ffc6c 100644 --- a/native/jni/src/proximity_info_state.cpp +++ b/native/jni/src/proximity_info_state.cpp @@ -170,7 +170,7 @@ float ProximityInfoState::getPointToKeyLength( return 0.0f; } // If the char is not a key on the keyboard then return the max length. - return MAX_POINT_TO_KEY_LENGTH; + return static_cast<float>(MAX_VALUE_FOR_WEIGHTING); } float ProximityInfoState::getPointToKeyLength_G(const int inputIndex, const int codePoint) const { @@ -314,6 +314,6 @@ float ProximityInfoState::getProbability(const int index, const int keyIndex) co if (it != mCharProbabilities[index].end()) { return it->second; } - return static_cast<float>(MAX_POINT_TO_KEY_LENGTH); + return static_cast<float>(MAX_VALUE_FOR_WEIGHTING); } } // namespace latinime |