aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/proximity_info_state.cpp
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-03-04 22:24:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-04 22:24:48 -0800
commit6094388f0f379474d1f606400ff50565637c0dc2 (patch)
tree4accc9b4c9377f065295d86b8c7b5c3d6c787470 /native/jni/src/proximity_info_state.cpp
parenta5857b3167263c424f2057a7432546005bb0ce5c (diff)
parentff745e9a8adef082859dfbfa3ceeb16a0842980b (diff)
downloadlatinime-6094388f0f379474d1f606400ff50565637c0dc2.tar.gz
latinime-6094388f0f379474d1f606400ff50565637c0dc2.tar.xz
latinime-6094388f0f379474d1f606400ff50565637c0dc2.zip
am ff745e9a: am 830ba674: refactor MAX_POINT_TO_KEY_LENGTH
* commit 'ff745e9a8adef082859dfbfa3ceeb16a0842980b': 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.cpp4
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