diff options
author | 2011-06-17 16:16:15 +0900 | |
---|---|---|
committer | 2011-06-17 17:08:09 +0900 | |
commit | 4fd9650f0bfadf86f37834628221479c868bf763 (patch) | |
tree | ea4b7e836501824b6c5de54f9a0e8f9da8616d17 /native/src/unigram_dictionary.cpp | |
parent | 581335c3fbc0968aac02507453d783cdd97455bf (diff) | |
download | latinime-4fd9650f0bfadf86f37834628221479c868bf763.tar.gz latinime-4fd9650f0bfadf86f37834628221479c868bf763.tar.xz latinime-4fd9650f0bfadf86f37834628221479c868bf763.zip |
New dict format, step 3 - followup
Make the passing of an argument clearer
Bug: 4392433
Change-Id: Id82662ff4dc25282f70a08bee77378fee2b4b590
Diffstat (limited to 'native/src/unigram_dictionary.cpp')
-rw-r--r-- | native/src/unigram_dictionary.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index c294cf3b5..aa159b533 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp @@ -579,7 +579,6 @@ void UnigramDictionary::getWordsRec(const int childrenCount, const int pos, cons for (int i = 0; i < childrenCount; ++i) { int newCount; int newChildPosition; - const int newDepth = depth + 1; bool newTraverseAllNodes; int newMatchRate; int newInputIndex; @@ -595,7 +594,7 @@ void UnigramDictionary::getWordsRec(const int childrenCount, const int pos, cons siblingPos = newSiblingPos; if (needsToTraverseChildrenNodes) { - getWordsRec(newCount, newChildPosition, newDepth, maxDepth, newTraverseAllNodes, + getWordsRec(newCount, newChildPosition, newOutputIndex, maxDepth, newTraverseAllNodes, newMatchRate, newInputIndex, newDiffs, skipPos, excessivePos, transposedPos, nextLetters, nextLettersSize); } |