aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-04-28 16:50:06 +0900
committerKen Wakasa <kwakasa@google.com>2014-04-28 16:50:06 +0900
commit9e15b4551eaff96c3cde6e99132a1aab3900f923 (patch)
tree61d9c82301f14954e660417122312d7afec903c0 /native/jni/src
parent91db602b83f5964896f9e1bc31e21ed16f775e4e (diff)
downloadlatinime-9e15b4551eaff96c3cde6e99132a1aab3900f923.tar.gz
latinime-9e15b4551eaff96c3cde6e99132a1aab3900f923.tar.xz
latinime-9e15b4551eaff96c3cde6e99132a1aab3900f923.zip
Small clean up on MAX_LOCALE_STRING_LENGTH
Change-Id: I77f93879e841f33b81f6d193d1bd5782ad2124f5
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/defines.h3
-rw-r--r--native/jni/src/suggest/core/layout/proximity_info.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index 3becc79e8..2fe2bd8fa 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -330,9 +330,6 @@ static inline void prof_out(void) {
#define MAX_PROBABILITY 255
#define MAX_BIGRAM_ENCODED_PROBABILITY 15
-// Assuming locale strings such as en_US, sr-Latn etc.
-#define MAX_LOCALE_STRING_LENGTH 10
-
// Max value for length, distance and probability which are used in weighting
// TODO: Remove
#define MAX_VALUE_FOR_WEIGHTING 10000000
diff --git a/native/jni/src/suggest/core/layout/proximity_info.h b/native/jni/src/suggest/core/layout/proximity_info.h
index 56711d1ff..d4e453736 100644
--- a/native/jni/src/suggest/core/layout/proximity_info.h
+++ b/native/jni/src/suggest/core/layout/proximity_info.h
@@ -103,6 +103,8 @@ class ProximityInfo {
const int KEYBOARD_HEIGHT;
const float KEYBOARD_HYPOTENUSE;
const bool HAS_TOUCH_POSITION_CORRECTION_DATA;
+ // Assuming locale strings such as en_US, sr-Latn etc.
+ static const int MAX_LOCALE_STRING_LENGTH = 10;
char mLocaleStr[MAX_LOCALE_STRING_LENGTH];
int *mProximityCharsArray;
int mKeyXCoordinates[MAX_KEY_COUNT_IN_A_KEYBOARD];