diff options
author | 2013-01-08 17:23:43 +0900 | |
---|---|---|
committer | 2013-01-08 17:23:43 +0900 | |
commit | a10b1a88443a16bb1b5af1af63d0ed501b25f55d (patch) | |
tree | 5d52a7f7df55c7cebe3a8e36aa075683b1e1ce55 /native/jni/src/unigram_dictionary.cpp | |
parent | 8873b5ae31a5541913af40af6862542055e39ef8 (diff) | |
download | latinime-a10b1a88443a16bb1b5af1af63d0ed501b25f55d.tar.gz latinime-a10b1a88443a16bb1b5af1af63d0ed501b25f55d.tar.xz latinime-a10b1a88443a16bb1b5af1af63d0ed501b25f55d.zip |
Misc small cleanups
Change-Id: Iea61e6c76a9a0437a1b2e8143f6ab5b09a8e211e
Diffstat (limited to 'native/jni/src/unigram_dictionary.cpp')
-rw-r--r-- | native/jni/src/unigram_dictionary.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/native/jni/src/unigram_dictionary.cpp b/native/jni/src/unigram_dictionary.cpp index def4a5bf8..ebeef13b9 100644 --- a/native/jni/src/unigram_dictionary.cpp +++ b/native/jni/src/unigram_dictionary.cpp @@ -365,7 +365,7 @@ void UnigramDictionary::getSuggestionCandidates(const bool useFullEditDistance, } void UnigramDictionary::onTerminal(const int probability, - const TerminalAttributes& terminalAttributes, Correction *correction, + const TerminalAttributes &terminalAttributes, Correction *correction, WordsPriorityQueuePool *queuePool, const bool addToMasterQueue, const int currentWordIndex) const { const int inputIndex = correction->getInputIndex(); @@ -390,8 +390,7 @@ void UnigramDictionary::onTerminal(const int probability, const int shortcutProbability = finalProbability > 0 ? finalProbability - 1 : 0; // Please note that the shortcut candidates will be added to the master queue only. - TerminalAttributes::ShortcutIterator iterator = - terminalAttributes.getShortcutIterator(); + TerminalAttributes::ShortcutIterator iterator = terminalAttributes.getShortcutIterator(); while (iterator.hasNextShortcutTarget()) { // TODO: addWord only supports weak ordering, meaning we have no means // to control the order of the shortcuts relative to one another or to the word. |