Fix a bug with negative coordinates, step 2

Indentation changes only

Change-Id: I95011e7d3f787ae6749b826af627f9acaed34e97
This commit is contained in:
Jean Chalard 2012-03-23 19:36:07 +09:00
parent 88ec125cfc
commit 3094d12cdc

View file

@ -180,11 +180,11 @@ void ProximityInfo::calculateNearbyKeyCodes(
if (additionalProximitySize > 0) {
inputCodes[insertPos++] = ADDITIONAL_PROXIMITY_CHAR_DELIMITER_CODE;
if (insertPos >= MAX_PROXIMITY_CHARS_SIZE) {
if (DEBUG_DICT) {
assert(false);
if (DEBUG_DICT) {
assert(false);
}
return;
}
return;
}
const int32_t* additionalProximityChars =
AdditionalProximityChars::getAdditionalChars(&mLocaleStr, primaryKey);
@ -205,9 +205,9 @@ void ProximityInfo::calculateNearbyKeyCodes(
assert(false);
}
return;
}
}
}
}
// Add a delimiter for the proximity characters
for (int i = insertPos; i < MAX_PROXIMITY_CHARS_SIZE; ++i) {