am dfecc86f: Fix ShortcutListPolicy::getStartPos().

* commit 'dfecc86f255538840461c1a30e98cf6eba445c2e':
  Fix ShortcutListPolicy::getStartPos().
This commit is contained in:
Keisuke Kuroyanagi 2013-08-14 01:38:02 -07:00 committed by Android Git Automerger
commit a05c94747b

View file

@ -33,6 +33,9 @@ class ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
~ShortcutListPolicy() {}
int getStartPos(const int pos) const {
if (pos == NOT_A_DICT_POS) {
return NOT_A_DICT_POS;
}
int listPos = pos;
ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
return listPos;