am 2daea197: am 47bb8d7d: am 4fffa27d: Fix a native crash in AOSP LatinIME
* commit '2daea19709cd6c9d844d9ad77076256e2f3967ad': Fix a native crash in AOSP LatinIMEmain
commit
78e6104108
|
@ -42,8 +42,9 @@ class Weighting;
|
||||||
class Suggest : public SuggestInterface {
|
class Suggest : public SuggestInterface {
|
||||||
public:
|
public:
|
||||||
AK_FORCE_INLINE Suggest(const SuggestPolicy *const suggestPolicy)
|
AK_FORCE_INLINE Suggest(const SuggestPolicy *const suggestPolicy)
|
||||||
: TRAVERSAL(suggestPolicy->getTraversal()),
|
: TRAVERSAL(suggestPolicy ? suggestPolicy->getTraversal() : 0),
|
||||||
SCORING(suggestPolicy->getScoring()), WEIGHTING(suggestPolicy->getWeighting()) {}
|
SCORING(suggestPolicy ? suggestPolicy->getScoring() : 0),
|
||||||
|
WEIGHTING(suggestPolicy ? suggestPolicy->getWeighting() : 0) {}
|
||||||
AK_FORCE_INLINE virtual ~Suggest() {}
|
AK_FORCE_INLINE virtual ~Suggest() {}
|
||||||
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
||||||
int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint,
|
int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint,
|
||||||
|
|
Loading…
Reference in New Issue