diff options
author | 2013-06-19 22:20:25 +0900 | |
---|---|---|
committer | 2013-06-19 22:20:25 +0900 | |
commit | ec7457eb7f15245a082cd81e42d08dbe39aab4cd (patch) | |
tree | b120e3647717b9c66fa5601cc5ec980179d04484 | |
parent | 9380b56db64b1ad5d165972e3bcc0ff75bba6768 (diff) | |
download | latinime-ec7457eb7f15245a082cd81e42d08dbe39aab4cd.tar.gz latinime-ec7457eb7f15245a082cd81e42d08dbe39aab4cd.tar.xz latinime-ec7457eb7f15245a082cd81e42d08dbe39aab4cd.zip |
Initialize inputStatusG at the constructor.
Bug: 9490519
Change-Id: I1806f765f7a0b5335df253b2618b40cfd17aab14
-rw-r--r-- | native/jni/src/suggest/core/dicnode/dic_node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/native/jni/src/suggest/core/dicnode/dic_node.h b/native/jni/src/suggest/core/dicnode/dic_node.h index 25299948d..46aa0d08e 100644 --- a/native/jni/src/suggest/core/dicnode/dic_node.h +++ b/native/jni/src/suggest/core/dicnode/dic_node.h @@ -51,6 +51,11 @@ namespace latinime { // This struct is purely a bucket to return values. No instances of this struct should be kept. struct DicNode_InputStateG { + DicNode_InputStateG() + : mNeedsToUpdateInputStateG(false), mPointerId(0), mInputIndex(0), + mPrevCodePoint(0), mTerminalDiffCost(0.0f), mRawLength(0.0f), + mDoubleLetterLevel(NOT_A_DOUBLE_LETTER) {} + bool mNeedsToUpdateInputStateG; int mPointerId; int16_t mInputIndex; |