diff options
author | 2012-03-23 02:48:15 -0700 | |
---|---|---|
committer | 2012-03-23 02:48:15 -0700 | |
commit | 2b5b6388d6b16e8644e02e71e6e8810e913ff9f8 (patch) | |
tree | 9385f9414fb5865951b779eb2b120f6806dbd4d6 /native/src | |
parent | 0e134a4477f93ada026b8749127bc2426db8c4bf (diff) | |
parent | bbc25607f01cf9a0cdbc3e8664b27c7f26bd6e18 (diff) | |
download | latinime-2b5b6388d6b16e8644e02e71e6e8810e913ff9f8.tar.gz latinime-2b5b6388d6b16e8644e02e71e6e8810e913ff9f8.tar.xz latinime-2b5b6388d6b16e8644e02e71e6e8810e913ff9f8.zip |
Merge "Fix a typo"
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/defines.h | 2 | ||||
-rw-r--r-- | native/src/proximity_info.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/native/src/defines.h b/native/src/defines.h index 21215343e..e882c3714 100644 --- a/native/src/defines.h +++ b/native/src/defines.h @@ -171,7 +171,7 @@ static inline void prof_out(void) { #define EQUIVALENT_CHAR_WITHOUT_DISTANCE_INFO -2 #define PROXIMITY_CHAR_WITHOUT_DISTANCE_INFO -3 #define ADDITIONAL_PROXIMITY_CHAR_DISTANCE_INFO -4 -#define NOT_A_INDEX -1 +#define NOT_AN_INDEX -1 #define NOT_A_FREQUENCY -1 #define KEYCODE_SPACE ' ' diff --git a/native/src/proximity_info.cpp b/native/src/proximity_info.cpp index 47f137610..2bfb15d8c 100644 --- a/native/src/proximity_info.cpp +++ b/native/src/proximity_info.cpp @@ -304,7 +304,7 @@ inline float square(const float x) { return x * x; } float ProximityInfo::calculateNormalizedSquaredDistance( const int keyIndex, const int inputIndex) const { - if (keyIndex == NOT_A_INDEX) { + if (keyIndex == NOT_AN_INDEX) { return NOT_A_DISTANCE_FLOAT; } if (!hasSweetSpotData(keyIndex)) { @@ -325,11 +325,11 @@ bool ProximityInfo::hasInputCoordinates() const { int ProximityInfo::getKeyIndex(const int c) const { if (KEY_COUNT == 0) { // We do not have the coordinate data - return NOT_A_INDEX; + return NOT_AN_INDEX; } const unsigned short baseLowerC = toBaseLowerCase(c); if (baseLowerC > MAX_CHAR_CODE) { - return NOT_A_INDEX; + return NOT_AN_INDEX; } return mCodeToKeyIndex[baseLowerC]; } |