diff options
author | 2012-01-17 15:59:15 +0900 | |
---|---|---|
committer | 2012-01-17 16:00:55 +0900 | |
commit | 29dc80614bc529ca2c0b96e1a731ebb7a5433090 (patch) | |
tree | 5fcb3208f5851c913dbe945808e70e740e263f8a /native/src/words_priority_queue.h | |
parent | f611f24b32149fc928c0f31934d563ea7a053274 (diff) | |
download | latinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.tar.gz latinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.tar.xz latinime-29dc80614bc529ca2c0b96e1a731ebb7a5433090.zip |
Prepair for advanced two words error correction
Change-Id: I4c8a21f0f6e349ddafd9b402583321a60855cfe8
Diffstat (limited to 'native/src/words_priority_queue.h')
-rw-r--r-- | native/src/words_priority_queue.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/words_priority_queue.h b/native/src/words_priority_queue.h index 54bf27a59..6262439b5 100644 --- a/native/src/words_priority_queue.h +++ b/native/src/words_priority_queue.h @@ -81,10 +81,9 @@ class WordsPriorityQueue { mSuggestions.push(sw); } - SuggestedWord* topAndPop() { + SuggestedWord* top() { if (mSuggestions.empty()) return 0; SuggestedWord* sw = mSuggestions.top(); - mSuggestions.pop(); return sw; } @@ -112,7 +111,7 @@ class WordsPriorityQueue { return size; } - int size() { + int size() const { return mSuggestions.size(); } |