aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/words_priority_queue.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-01-17 15:59:15 +0900
committersatok <satok@google.com>2012-01-17 16:00:55 +0900
commit29dc80614bc529ca2c0b96e1a731ebb7a5433090 (patch)
tree5fcb3208f5851c913dbe945808e70e740e263f8a /native/src/words_priority_queue.h
parentf611f24b32149fc928c0f31934d563ea7a053274 (diff)
downloadlatinime-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.h5
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();
}